Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dynamic Text Animator Index for Duplicates

  • Dynamic Text Animator Index for Duplicates

    Posted by Brayden Blythe on March 29, 2024 at 1:46 am

    I’m writing an expression for the position property in a text animator (Animator 1). I need to reference the index of the Animator group.

    So far I’ve written this:

    animatorIndex = text.animator(“Animator 1”).propertyIndex;

    which gives me the value of 1, which is perfect. But when I duplicate Animator 1, I need the name in the line of code to automatically update to “Animator 2” so the animatorIndex = 2

    As of now, when I duplicate the Animator 1 group the name in the parentheses stays the same. Any help out there??

    Elizebth jolley replied 3 months, 1 week ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 29, 2024 at 5:05 am

    Where is the expression applied?

  • Brayden Blythe

    March 29, 2024 at 11:05 am

    It’s applied to the position property of a text animator (Animator 1) on my text layer

  • Dan Ebberts

    March 29, 2024 at 12:51 pm

    Try this:

    animatorIndex = thisProperty.propertyGroup(2).propertyIndex;
  • Elizebth jolley

    April 8, 2024 at 1:20 pm

    To dynamically reference the index of the Animator group when duplicating Animator 1, you can use the following expression:

    javascript

    animatorIndex = text.animator("Animator " + thisProperty.propertyGroup().propertyIndex).propertyIndex;

    This expression uses thisProperty.propertyGroup().propertyIndex to dynamically reference the index of the Animator group containing the text animator. So, when you duplicate Animator 1, the expression will automatically update to reference the new index (e.g., “Animator 2”, “Animator 3”, and so on).

    For more Alight Motion mod APKs and tips, you can visit https://thealightmotionapks.com/.

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