Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions automatic renumber of expression on duplicate?

  • automatic renumber of expression on duplicate?

    Posted by Andy Engelkemier on August 8, 2013 at 11:55 am

    This is a basic one, but I’m not sure of an answer.

    When you duplicate several layers at once with Ctrl+D, or just copying and pasting them, the expression stays the same, but the layer name changes.

    So I might have something basic like: thisComp.layer(“roll 2”).transform.position

    If I duplicate that along with the layer “roll 2” the layer will now be called “roll 3” but the expression stays as “roll 2” I can see how many times this would be desired.

    Is there an alternate way of duplicating that would automatically change those?

    Andy Engelkemier replied 12 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Annebelle Van zweden

    August 14, 2013 at 1:17 pm

    thisComp.layer(thisLayer, +1).transform.position

    The +1 means ‘one layer below’

    thisComp.layer(thisLayer, +1).transform.position

  • Andy Engelkemier

    August 14, 2013 at 1:21 pm

    Oh, that totally works. I just have to keep an eye on accidentally reordering things. I manually did that on the previous project, but I’ll have to do something similar on my current one, so I can use that for sure.
    Thanks Annebelle

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