-
Expression References Content Item to Which it Is Applied?
I have a number of content rectangles contained in a shape layer. I’m getting the position of each (for reasons) and storing it in X.
X = content("Rectangle 1").transform.position[0];Rather than manually change the “Rectangle 1” string for each of the several dozen rectangles, I’d like that section of the expression to explicitly know we’re talking about the position of the content rectangle to which the expression is applied, not the shape layer containing it. Is this possible?
I’ve tried changing the code to the following:
X = this.transform.position[0];I’m currently unsure if that’s getting the position of the shape layer or the rectangle.
Any help is greatly appreciated.