Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Rod Santoyo on July 17, 2009 at 5:14 pm

    Hey there,

    I am kind of newbie at expressions on AE. I need help with this.
    Im making some animated mattes with a lot of vertical bands.

    Ive already made them to move up with the same animation of my layer number 1:

    x = thisComp.layer(index -1).transform.position[0];
    y = thisComp.layer(index -1).transform.position[1];

    [x+12,y]

    So every band has its place an move up at the same time.
    But now i need to offset the start point of each one so i can reach a “wavy” effect.

    I know this should be really easy, thnx .

    Rod

    Dan Ebberts replied 16 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    July 17, 2009 at 6:09 pm

    If your lead layer is layer 1, this should do what you want:

    delay = .1;
    xOffset = 12;
    p = thisComp.layer(1).transform.position.valueAtTime(time-(index-1)*delay);
    [p[0]+xOffset*(index-1),p[1]]

    Dan

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