Freeze scale transform on animated hierarchy?

Freeze scale transform on animated hierarchy?

Anonymous
Not applicable
1,421 Views
0 Replies
Message 1 of 1

Freeze scale transform on animated hierarchy?

Anonymous
Not applicable

I have a hierarchy with animated transform nodes inside. The animation is only on translate and rotate when scale is uniform static but is not 1. I need to freeze scale so every object have scale 1 while also keeping animation and hierarchy intact.

 

problem is, of course, freezing scale on parent's node breaks animation on child node. I've been looking for scripts that fixes it, but looks like there is no such thing yet.

 

so i'm doing this:

1. group every object on hierarchy into separate groups

2. parent groups to world and zero out translate

3. bake transformation to world

4. freeze scale on all objects

5. reparent them back

 

I made a fairly complicated script, using patches of others scripts and sewing them together, and did make some progress. However it's far from perfect. Some objects have offsets on translate and some of them on rotate, but some of them look perfect. Weird.

If anyone knows better solution, pls share.

 

I'm attaching my script and test scene if you want to have a look.

0 Likes
1,422 Views
0 Replies
Replies (0)