Page 1 of 1

Expression in between key frames?

PostPosted: 04/7/2016, 7:07 am
by Ampix0
So I import a song, convert to key frames and I have some data. I want to use this data on an effect on another layer. So pick whip and we are good. The challenge is, I only want to apply this expression in between two key frames.

Re: Expression in between key frames?

PostPosted: 04/7/2016, 7:34 am
by plae57
Ampix0 wrote:So I import a song, convert to key frames and I have some data. I want to use this data on an effect on another layer. So pick whip and we are good. The challenge is, I only want to apply this expression in between two key frames.


Maybe add a conditional statement to check to see if you are between these two key frames.

Re: Expression in between key frames?

PostPosted: 05/2/2016, 5:40 pm
by hans123
Hello,

you can use this simple Expression:

timeToStart = 2;
timeToStop = 4;

if ((time > timeToStart) && (time < timeToStop)){
temp = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
[temp, temp];
}else{
value;
}


or you delete the (Audio) keyframes before and after your keyframes.
See my Picture.

Hans