CGCookie / script-bakery

A collection of scripts written by members of CG Cookie to improve their Blender workflow.
124 stars 65 forks source link

Selecting Strokes Re-Aligns them #120

Open carter2422 opened 11 years ago

carter2422 commented 11 years ago

If you select a stroke that has been shifted or otherwise manually aligned is selected then it auto-aligns its self. No alignment should take place upon selection.

patmo141 commented 11 years ago

Are you ctrl + clicking to select?

carter2422 commented 11 years ago

Nope, just LMB.

patmo141 commented 11 years ago

You are technically widgeting them wgen clicking. Ctrl click to just select.

carter2422 commented 11 years ago

That doesn't make sense to me. Why does the widget cause realignment?

patmo141 commented 11 years ago

This is a hard concept to explain. I'm going to make a video.

carter2422 commented 11 years ago

Okay cool, thanks.

patmo141 commented 11 years ago

http://www.youtube.com/watch?v=W5Zvv907LJw&feature=youtu.be

patmo141 commented 11 years ago

the underylying reason is the way contours works. The "in this situation" reason is becuase its hard to distinguish a click from someone clicking to intitiate a transform.

Basically, it always assumes you have clicked to transform unless you hold ctrl....so when you release it re-cuts the object. Video explains why this ruins your alignment sometimes.

I'm pretty sure I can improve this on both levels though

patmo141 commented 11 years ago

So...two problems here which we can leave as one bug.

a. simple clicks cause behind the scenes transform, causing a re-cut and re alignment. Losing established shift b. shift is not well preserved through transformations

carter2422 commented 11 years ago

Ah that makes perfect sense. Thanks for the video.

In response to a. above, could we mitigate this by implementing a threshold detection for what is considered a transform? Such that if a user simply selects the stroke, or moves it a minuscule amount, then Contours doesn't consider it a new cut?