Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text animator index

  • Text animator index

    Posted by Edit Luovia on October 24, 2007 at 3:53 pm

    Hello, this might be a stupid or simple quostion but hey, I’m not a coder kind of guy.

    Can you do a expression to text Animator Range Selector property (start and End) that adds one to them everytime you copy paste a Text Animator to same layer ? for example: first animator would have ranges from (Start) 1 to (End) 2 and next animator ranges would be 2 to 3 and next copy 3 to4 and so on.

    I know there’s a way to count layers but is there a way to count text animators as well (or any other property like effects) ?

    Luovia

    Dan Ebberts
    replied 16 years, 11 months ago
    3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    October 24, 2007 at 4:42 pm

    For an expression applied to a range Selector’s Start or End property, I think this will give you the index of the Animator:

    propertyGroup(3).propertyIndex

    Dan

  • Edit Luovia

    October 24, 2007 at 5:58 pm

    Thanks Dan, that’s just what I’ve been searching for!

    Luovia

  • Peter Menich

    June 1, 2009 at 6:43 pm

    Hi Folks,

    I’m trying to get my head around this ‘propertyGroup/propertyIndex’ shenanigans and struggling.

    I think I’m trying to do the same thing as Luovia.

    I’m trying to get a group of letters in a block of text to break up in a random fashion.

    I’ve applied an expression to the block of text that selects the first letter and applies a random positional and rotational drift over time using interpolation. I’m using the index range selector rather than the percentage, so my start is 0 and my end is 1.

    What I want to be able to do is duplicate the property group and reference the previous property groups range ‘offset’ and add a 1 to get the next letter along in the string.

    It seems that all the ‘propertyGroup(x).propertyIndex’ does is tell you the index number rather than the value itself, and even then I’m struggling to actually understand how you work out how to get to the previous property groups offset value.

    Any pointers would be greatly appreciated.

    Otherwise I’m going to have to roll up my sleeves and get medieval on its a**.

  • Dan Ebberts

    June 2, 2009 at 2:01 pm

    This should get you the same property in the previous Range Selector (within the same Animator):

    mySelector = thisProperty.propertyGroup(1).propertyIndex;
    thisProperty.propertyGroup(2)(mySelector-1)(propertyIndex)

    Dan

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