Copy link to clipboard
Copied
Hello! Need help with expression.
There is a TimeRemap and two default keyframes, start and end, respectively. Can I create two layer markers and bind a keyframe value to them to control those keys?
That is, moving the layer markers and changing the duration in the same way as with keyframes?
I tried it myself, nothing came of it, there is not enough knowledge (
Help please, I really need!
I can't tell if this is exactly what you're after, but this example might get you started. This time remapping expression will take the time range between your two time remapping keyframes and play it between your two markers:
if (marker.numKeys >= 2){
t1 = marker.key(1).time;
t2 = marker.key(2).time;
linear(time,t1,t2,key(1).time,key(2).time);
}else
value
Copy link to clipboard
Copied
I can't tell if this is exactly what you're after, but this example might get you started. This time remapping expression will take the time range between your two time remapping keyframes and play it between your two markers:
if (marker.numKeys >= 2){
t1 = marker.key(1).time;
t2 = marker.key(2).time;
linear(time,t1,t2,key(1).time,key(2).time);
}else
value
Copy link to clipboard
Copied
This is absolutely what I needed! Thank you very much, you helped me a lot !!! You are the best! 🙂