FORUMS: list search recent posts

How to write expression for this little part

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mostafa Talebi
How to write expression for this little part
on Aug 29, 2011 at 4:48:53 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 &lt; frame 2){
parameter1 = 1}
else{
parameter1= 0
}


Return to posts index

Dan Ebberts
Re: How to write expression for this little part
on Aug 29, 2011 at 5:24:36 pm

This should do it:

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


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]