Adobe After Effects Forum
World Transform.... Scale
World Transform.... Scale
by Adam forbes on Dec 3, 2012 at 9:48:41 pm

So I need an expression that will calculate the WORLD scale of a child object. Basically if a parent is scaled up the child's scale "stays" the same but how would i calculate it's actual scale?

I know you can do this with position... but not sure how with scale.

Re: World Transform.... Scale
by Cassius Marques on Dec 4, 2012 at 8:06:12 pm

check if it helps (I probably got that from a post from Dan Ebberts)

L = thisLayer;
s = [100, 100, 100] ;
while (L.hasParent){
L = L.parent;
for (i = 0; i < s.length; i++) s[i] *= 100/L.transform.scale.value[i]