Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expressions help

  • Posted by Ted Gore on February 6, 2006 at 8:08 pm

    Hey all,

    I’m trying to set up an expression where one layer follows the position and opacity of the layer below it, and is offset in time. So basically the layers are sequenced, but the position and opacity are controlled from one layer. I can’t just sequence the layers because I am doing it with footage, and can’t offset the runtime.

    Thanks for any help.

    Ted

    Øyvind Veberg replied 20 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Øyvind Veberg Create COW Profile Image

    Øyvind Veberg

    February 6, 2006 at 9:15 pm

    Hi!

    Try applying this little expression to the position-parameter:

    d=0.5;// This is the offset-time in seconds
    thisComp.layer(2).position.valueAtTime(time-d)

    And this to the opacity:

    d=2;// This is the offset-time in seconds
    thisComp.layer(2).opacity.valueAtTime(time-d)

    These expressions assume that you have at least two layers in your comp. The “master” layer is the second layer (#2). This is the one you keyframe. If you need to change the reference just edit the “2” in “thisComp.layer(2)….” to the index of your choice.

    Hope this helps!

    Good luck!

    Cheers!

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