Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions duplicate solid and move in ‘y’ position

  • duplicate solid and move in ‘y’ position

    Posted by Jose Arce on July 5, 2018 at 10:04 pm

    Hi.

    I just want to know if with a expression can move a duplicate solid in y position from original layer.

    I need to move several layer from my first layer i.e. layer one is y postion 540, layer 2 530, layer 3…

    Thanks

    Jose Arce replied 7 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Scott Mcgee

    July 6, 2018 at 7:36 am

    The below link give you the feature so that your first one that it’s basing it’s position off doesn’t flag an error as it doesn’t have a index to refer to. The everything after that (Duplications) will – 10 on the y axis and stay linear on the x.

    try{
    x = thisComp.layer(index+1).transform.position[0];
    y = thisComp.layer(index+1).transform.position[1] – 10;
    }catch(err){
    x = value[0];
    y = value[1];
    }
    [x,y]

  • Jose Arce

    July 6, 2018 at 10:12 pm

    Thanks, work great.

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