Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions help with offset exp

  • help with offset exp

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

    Hey there,

    Im kind of newbie at AE expression. I need help with this.
    I am making some animated mattes with a lot of vertical white bars.

    Ive already made them go up with the same animation of my layer number 1, also with an offset on X axis.

    I used this expression:

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

    [x+12,y]

    Now here is the thing,
    I cant get to offset each bar start frame so I can get a “wavy” effect, like in an old sound EQ or volume digital meter)

    Help me plz!

    Thanks,
    Rod

    Rod Santoyo replied 16 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Ben Rollason

    July 24, 2009 at 11:53 am

    you need to use valueAtTime()

    For instance:-

    thisComp.layer("matte_layer").position.valueAtTime(time - 3);

    will give you matte_layer’s position 3 seconds ago.

    thisComp.layer("matte_layer").position.valueAtTime(time - (3*thisComp.frameDuration));
    will give you matte_layer’s position 3 frames ago.

    thisComp.layer("matte_layer").position.valueAtTime(time + Math.sin(time*5)/2);

    will follow matte_layer’s position, but oscillating back and forth along the path.

    -Ben.

    https://www.benrollason.com

  • Rod Santoyo

    July 24, 2009 at 2:47 pm

    Hey Ben , I´ll try it as soon as I get to the office.
    I´ll let u know the result. Thanks!

    Rod

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