-
Dynamic Text Animator Index for Duplicates
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??