ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

World Transform.... Scale

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam forbes
World Transform.... Scale
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.


Return to posts index

Cassius Marques
Re: World Transform.... Scale
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]
}
s


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]