Skip to main content
Participant
Sep 4, 2024 4:16 AM UTC
Answered

How to change Y Position from 0 to value without keyframe

Hi guys, please tell me how to solve it. We have a shape with X Position and Y Position, the Y Position value is set via slider control. How to make Y Position change from 0 to this value, but only without keyframes in slider control?

This topic is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Sep 4, 2024 6:45 AM UTC

So you have the position dimensions separated, is that correct? If so, then maybe something like this for Y Position:

s = effect("Slider Control")("Slider");
tStart = 2; // time to start move
dur = 1; // move duration
linear(time,tStart,tStart+dur,0,s);

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Sep 4, 2024 6:45 AM UTC

So you have the position dimensions separated, is that correct? If so, then maybe something like this for Y Position:

s = effect("Slider Control")("Slider");
tStart = 2; // time to start move
dur = 1; // move duration
linear(time,tStart,tStart+dur,0,s);
Translate