Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time remap expression controlled by a ramp

  • Time remap expression controlled by a ramp

    Posted by Brian Scott on July 2, 2015 at 2:51 am

    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};

    Brian Scott replied 10 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy