Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to write expression for this little part

  • How to write expression for this little part

    Posted by Mostafa Talebi on August 29, 2011 at 4:48 pm

    hello everybody

    I have problem in writing some little expression.

    I want to say that parameter 1 = 1 only if it’s before the frame 2 and when it reaches the second frame the value turn to 0.

    THANKS

    this is the outline

    if ( time < frame 2){
    parameter1 = 1}
    else{
    parameter1= 0
    }

    Dan Ebberts replied 14 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    August 29, 2011 at 5:24 pm

    This should do it:

    parameter1 = (timeToFrames() < 2) ? 1 : 0;

    Dan

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