-
Selecting layer with value
Hi guys, hope you can help me.
How can I convert a value to text so that I can use it in an expression, I want to reference a layer based on increasing values, for example from a slider.
I’m trying to set the X position of a layer to the X position of another layer based on the current number of a slider, the value of the slider matching the title of the layer to focus on. For example:
TITLE_01
TITLE_02
TITLE_03Slider = 2
Set ball’s X position to TITLE_02
This is what I have been using so far.
Test = 02;
X = thisComp.layer(“TITLE_”+Test).effect(“X”)(“Slider”);[X,0,0]
Many thanks.