Skip to main content
rctrancei70713229
Participating Frequently
Mar 20, 2021 4:38 PM UTC
Answered

TimeRemap control via layer markers

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!

This topic is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Mar 20, 2021 10:36 PM UTC

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

 

2 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Mar 20, 2021 10:36 PM UTC

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

 

Translate
rctrancei70713229
Participating Frequently
Mar 21, 2021 5:08 AM UTC

This is absolutely what I needed! Thank you very much, you helped me a lot !!! You are the best! 🙂

Translate