-
“Playing” a layer…
I am trying to “play” a video (16 frame animation) on command. I am using audio converted to keyframes (recording of a single note played multiple times, different rhythms), and I want to write an expression saying every time a note is played (>6.0 value would work for each note’s beginning), this 16 frame animation plays through and then freezes on the last frame (0:00:00:15). It’s important that it stops on the last frame of that layer while the rest of the timeline continues on. The effect would be that the animation is the note being played each time, in sync with the audio. But it needs to be an expression because it is too long to do manually.
Anyone know how to do this?…..
enable=effect("Enable Bounce")("Checkbox");
soundLVL = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
if( enable == 1){
if(soundLVL >6){
***play a layer and freeze on last frame***;}
else{};
}else{}