-
Moving from one layer to another by control slider of index
I have a layer(“playhead”) that I want to move by “triggering” it with a control slider designating the layer index number to which I want it to move to.
So my idea was to have the layer “playhead” look at the slider value of a control layer for an index number, and when it receives a new number (hold keyframed numbers on the control layer), then it would move from the current position to the new position of the designated index layer.
I finally got the reading of the index layer right and the positioning is working, but I think I’m missing some more variables to make the transition happen.
startPos=value;
i=thisComp.layer("MASTER CONTROL").effect("Playhead Layer Index")("Slider").value;
endPos=thisComp.layer(i).transform.position;linear(time,startPos,endPos)
What do I need here?