-
relative reference of nodes or objects
Good afternoon community!
i was wondering if after effects expression supports relative referencing of nodes or objects.
I will eleborate the question with simple usage / explanation.
1. say i have a composition, called [TEXT]. inside the comp, i have a text object, with arial font, size 20, blue.
2. using expressions, i can change the string value inside the text object to display what i want. i could pickwhip value in other objects to get the text object to display them.
3. say i have a composition called [LOTS OF TEXT], inside i have 3 copies of [TEXT] composition.
4. what i am hoping is possible, is to add markers on each [TEXT] composition, and label them RED, BLUE, GREEN. and have the text object inside the [TEXT] composition to be able to read the marker label and display them as text.
5. i thougth easiest way to achieve this was to get the text object inside [TEXT] compostion to be able to relatively reference itself. thus it can read read 3 difference marker values per instance.
so i am hoping, in [LOTS OF TEXT], i will have 3 [TEXT] composition displaying RED, BLUE, GREEN. however, since they are all same instances, if i were to change the font size of the textobject inside [TEXT] composition, all 3 will reflect those changes.
i am thinking if i could write expression that can “relatively” reference itself.
along the line of [root.thisComp] where previous line could mean the instance itself everytime its created?
i might of lost few of readers with perhaps complicated example, but i really do hope some users have the patience to read through the example and could let me know if it is even possible.
thank you so much in advance! any comments, suggestions, tips are welcomed!