Copy link to clipboard
Copied
Hello,
how can I add a specific starting point to this expression? I don't want it to start at layer, I would like to be able to edit the starting point.
I tried adding if time etc. but the expression doesn't work properly, I mean, it starts at the time I add, but the values are not correct, as if the expression values, which at the beginning of the layer are correct, at the starting point of the expression are not the same.
Thank you
Position:
yVelocity = 200; //pixels per second
oscFreq = 1.5; //oscillations per second
oscDepth = 35; //oscillation depth (pixels)
drift = 25; // drift (wind?) (pixels per second: - = left, + = right)
value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,
yVelocity*time,0]
The following should work if you are moving the layer's in point. If the layer has to start at Time=0, then Split (Edit Menu>Split) the Layer
timeScalar = time-inPoint;
yVelocity = 200; //pixels per second
oscFreq = 1.5; //oscillations per second
oscDepth = 35; //oscillation depth (pixels)
drift = 25; // drift (wind?) (pixels per second: - = left, + = right)
value + [oscDepth*Math.sin(oscFreq*Math.PI*2*timeScalar ) + drift *timeScalar ,
yVelocity*timeScalar ,0]
-----------------
Copy link to clipboard
Copied
The following should work if you are moving the layer's in point. If the layer has to start at Time=0, then Split (Edit Menu>Split) the Layer
timeScalar = time-inPoint;
yVelocity = 200; //pixels per second
oscFreq = 1.5; //oscillations per second
oscDepth = 35; //oscillation depth (pixels)
drift = 25; // drift (wind?) (pixels per second: - = left, + = right)
value + [oscDepth*Math.sin(oscFreq*Math.PI*2*timeScalar ) + drift *timeScalar ,
yVelocity*timeScalar ,0]
-----------------
Copy link to clipboard
Copied
thank you, it works perfectly. You're my new idol!
Copy link to clipboard
Copied
If your question was answered then please click on the Helpful button.