-
Time remap expression controlled by a ramp
I was hoping you could help me figure this one expression problem I’m struggling with….I have precomps that have their own animations and i wrote this little expression to put on their Time Remap property to trigger them with white values on a control layer. It’s really close to working but I can’t get the layer to go back to the beginning of its animation.
I know I want it to be controlled by this expression and not by keyframes so i can keep everything modular and the time displacement effect is not giving me the effect I’m looking for.
can you help me out?
Thanks!
Brian
controlLayer = thisComp.layer("Control layer");
sampleSize = [1,1];
samplePoint= transform.position;
color= controlLayer.sampleImage(samplePoint,sampleSize);
x=color[0];T=time; //This is where I'm having trouble. I need to get this value to bring the time remap back to the first frame and then play at regular speed from then on
if (x>0){
T;
}else{Time=0};
Sorry, there were no replies found.