Forums › Adobe After Effects Expressions › parenting scale problem
parenting scale problem
aniello ferrone
October 8, 2019 at 4:44 pmHi, could you help me?
I have a text layer parented to a shape layer with the pick-whip tool. I want the text layer to follow the shape layer in everything but no for the scale. How can I do it? The layer are both 2DThx in advance
AnielloAlex Printz
October 8, 2019 at 4:56 pmTry 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];
sAlex Printz
Mograph Designer
Viewing 1 - 2 of 2 posts
Log in to reply.