-
TIME REMAP EXPRESSION HELP NEEDED!
Hi there I am working on a project where I have some motion graphic looped backgrounds which I want to react with my audio.
so what I did is I made a NULL LAYER(C1) and put an expression slider to it..
then I add a time remapping on my video background composition and put this expression
”
a=0 // the start-value for time-remapping if not 0
t=0;
b=thisComp.frameDuration;
while(time>t && time>=inPoint) {
c=thisComp.layer(“c1”).effect(“Slider1”)(“Slider”).valueAtTime(t);
a+=c*b;
t+=b;
}
a-inPoint;
”
so now this layer is connected with slider layer which is “C1”so now I want a global control layer with new slider controller “C2” from where I can control the reaction speed depending on different music’s.
If I simply Pickwhip “C1” to AUDIO AMPLITUDE LAYER it reacts with audio but it’s too fast and if song duration is 3 minutes it stops reacting at half i.e. “1.5 minutes”.
which is not I want.
can you please tell me what expression or value I need to add on C1 so it works perfectly.Thank you very much for your time.