Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Stop expressions expression?

  • David Conklin

    December 2, 2014 at 6:14 pm

    As far as I am aware, you cannot access the time of another comp – only the time in the comp in which the expression is written. However, if you make a new null inside your master, call it ‘timecount’, place a slider on it, name the slider ‘timecount’ and add this expression onto that slider

    time;

    You now have a marker of the current time in your master comp.

    Now, you just need to wrap all of your expressions inside your precomp in an if-else statement. There are lots of nice tools to do this, pt_ExpressEdit is one of my favorites. You can do it manually, of course, if you don’t have too many.


    var theTime = comp("masterComp").layer("timecount").effect("timecount")("Slider");
    var timeToStopExp = 10; //seconds
    if(time < timeToStopExp){
    //place your expression here.
    ] else {
    //the disabled value here:
    value;
    }

    Change the timeToStopExp variable to whatever second you want your expressions to be turned off.

    Good luck!

    David Conklin
    Motion Designer

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