Skip to main content
Participant
September 4, 2024
Answered

How to change Y Position from 0 to value without keyframe

  • September 4, 2024
  • 1 reply
  • 220 views

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 has been closed for replies.
Correct answer Dan Ebberts

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
September 4, 2024

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);