Skip to main content
Participant
June 10, 2024
Answered

driving time-remap with audio issue

  • June 10, 2024
  • 7 replies
  • 748 views

Can anyone tell me why the attached expression is not working to drive the keyframe of my time-remapped layer? It seems like this should be pretty simple but it's not working.

This topic has been closed for replies.
Correct answer Dan Ebberts

Try this instead:

framesToTime(Math.round(thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")))

7 replies

Mylenium
Legend
June 11, 2024

Yeah, what Dan said. Your values would require a much, much, much longer comp before they even begin to make sense. You will need to use some time conversion method like framesToTime() or a linear() interpolator to remap the ranges to something sensible.

 

Mylenium

Participant
June 11, 2024

Respectfully, that can't be correct. When I drop a clip into a new composition and then time-remap that clip the value for the time-remap matches the keyframes exactly. Always has. 

Dan Ebberts
Community Expert
Community Expert
June 11, 2024

If you add a text layer, and link it's source text to the time remap in value, you'll see that the value is actually in seconds. Alternatively, create a simple time remap expression and just enter the number 1 for the expression. You'll see that the value is displayed in frames, but the value is actually 1 second.

Dan Ebberts
Community Expert
Community Expert
June 10, 2024

Time remap expects a value in seconds, were you possibly assuming it was frames?