Skip to main content
Participant
Jun 10, 2024 8:39 PM UTC
Answered

driving time-remap with audio issue

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 is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Jun 11, 2024 4:01 PM UTC

Try this instead:

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

7 replies

Mylenium
Legend
Jun 11, 2024 9:10 AM UTC

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

Translate
Participant
Jun 11, 2024 3:42 PM UTC

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. 

Translate
Dan Ebberts
Community Expert
Community Expert
Jun 11, 2024 3:58 PM UTC

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.

Translate
Dan Ebberts
Community Expert
Community Expert
Jun 10, 2024 9:13 PM UTC

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

Translate