ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: parenting scale problem

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Alex Printz
Re: parenting scale problem
on Oct 8, 2019 at 4:56:22 pm

Try this

p = thisLayer;
s = [1,1];
while (true){
if( ! p.hasParent) break;
p = p.parent;
for(i=0;i<p.scale.value.length;i++) s[i] *= p.scale[i]/100;
}
for(i=0;i<p.scale.value.length;i++) s[i] = value[i] / s[i];
s


Alex Printz
Mograph Designer


Posts IndexRead Thread 


Current Message Thread:
  • parenting scale problem by aniello ferrone on Oct 8, 2019 at 4:44:23 pm
    • Re: parenting scale problem by Alex Printz on Oct 8, 2019 at 4:56:22 pm





© 2020 CreativeCOW.net All Rights Reserved
[TOP]