Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions adding a value to a subsequent layer’s property

  • adding a value to a subsequent layer’s property

    Posted by Riccardo Sinti on September 7, 2008 at 9:22 pm

    I have a text layer which I’ve put an opacity text animator.
    I’m using opacity to reveal each letter one at a time using the offset parameter.
    So with a start of 0 and and end of 1 and offset at zero, the first letter of my text line is visible.
    I can dupe my layer and set that layer’s offset to 1 and that will reveal the second letter.

    What i want is an expression that I can put on the 1st layer’s offset so that each time I dupe the layer the new layer will have the offset value increase by one, so that all I have to do is keep hitting apple-D and all my letters will be revealed on it;s own layer,

    I suppose what i really want is how to do this with all sorts of parameters.

    Say I want each duped layer to be 10 bigger in scale than the previous, etc.

    Thanks!

    Dan Ebberts replied 18 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 7, 2008 at 11:16 pm

    Just use the layer’s index, which is the same as its number in the timeline window. For your scale example you could do it like this:

    [10,10]*index

    Layer 1 will be at 10%, layer 2 will be at 20%, etc.

    If you want the largest layers at the top of the stack, you’ll have to do something like this:

    n = thisComp.numLayers;
    [10,10]*(n + 1 – index)

    Depending on what you’re doing, you text animator expression might be as simple as this:

    index

    Dan

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