Freeze scale transform on a parent object with animated child (MAYA MEL/Python script) -


i have hierarchy of objects animation on translation , rotation, scale xyz equal , static not 1. when freeze scale on parent mesh it's children's animation goes wild. there way prevent happening?


i have found workaround, it's not perfect yet. let's have simple setup this: parentobject=>childobject

  1. i put childobject in group "childobjectgroup"
  2. parent childobjectgroup world , 0 out it's transforms excluding scale.
  3. bake childobject's trasformations world don't need group anymore. (found script that)
  4. freeze scale transforms on parentobject , childobject
  5. reparent them back

it works simple hierarchies that, not sure how apply more complicated ones deep tree , several brunches. i'm missing , there simple solution that.

any time change scale of parent node, translation it's children going change - @ least, if you're measuring in world space units. so, moving 10 units under parent scaled 0.5 move 5 world space units (for example).

i'm pretty sure rotations should fine since scale doesn't change how rotation around pivot works; however, if you're rotating pivot not in center of object , have non-uniform scaling (xyz not equal) rotation inside of squashed space feel more oval circle.

if that's not problem, main thing worry translation positions - need world space positions of each object @ each key, 'fix' scale, go through keys , set world space position again (i use xform command since can query , set position world space values). so, steps outlined best bet...

if have non-uniform scales though, may not able rotations work out in way gives same results (just depending on positions/pivots , consecutive descendant positions/pivots). if parent's scale isn't hurting , isn't supposed keyed/animated, might ok lock , hide without adverse effects.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -