• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

TimeRemap control via layer markers

Community Beginner ,
Mar 20, 2021 Mar 20, 2021

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!

TOPICS
Expressions

Views

858

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 20, 2021 Mar 20, 2021

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

 

Votes

Translate

Translate
Community Expert ,
Mar 20, 2021 Mar 20, 2021

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 20, 2021 Mar 20, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines