ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

World Transform.... Scale

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam forbesWorld Transform.... Scale
by 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 MarquesRe: World Transform.... Scale
by 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]

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved