Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions parenting scale problem

  • parenting scale problem

  • aniello ferrone

    October 8, 2019 at 4:44 pm

    Hi, 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 2D

    Thx in advance
    Aniello

  • Alex Printz

    October 8, 2019 at 4:56 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

Viewing 1 - 2 of 2 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy