Skip to main content
Inspiring
October 26, 2021
Answered

Go Up One Level in the Property Hierarchy Using Variation of "thisProperty"

  • October 26, 2021
  • 1 reply
  • 332 views

I have a Position text animator applied to a text layer and want to use the End range value as a variable on the Position property within the Animator (not the Position property of the layer). I don't want to name the layer or Animator explicitly so I can duplicate it and not have to edit.

 

So in my screenshot (below), I have the variable declaration:

multiplier=thisProperty.selector("Range Selector 1").end

But I realize "thisProperty" points to the Position property because that's where the expression is. Is there varition on "thisProperty" to say "go up to the next property in the hierachy"

 

 

I hope that makes sense. Thanks

This topic has been closed for replies.
Correct answer Dan Ebberts

You use propertyGroup() to go up the hierarchy. Try it this way:

multiplier = thisProperty.propertyGroup(2).selector("Range Selector 1").end;

 

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
October 27, 2021

You use propertyGroup() to go up the hierarchy. Try it this way:

multiplier = thisProperty.propertyGroup(2).selector("Range Selector 1").end;

 

AmozzaAuthor
Inspiring
October 27, 2021

Thanks Dan. It works perfectly!