Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple if/else statement on a wiggle

  • Simple if/else statement on a wiggle

    Posted by Chris Brearley on July 27, 2009 at 11:40 am

    Hi all, just a quick one. My java script is terrible, If someone could show me show to write this correctly I would be most grateful. Basically, I am putting a wiggle on the exposure but I don’t want the value to go below O. I’m guessing it needs to go something like this.

    a = wiggle (25,5)

    if a<0 then O, else a

    Thanks

    Chris Brearley replied 16 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 27, 2009 at 1:15 pm

    Like this:

    a = wiggle (25,5)
    if (a<0) 0 else a

    Or this:

    Math.max(wiggle(25,5),0)

    Dan

  • Chris Brearley

    July 27, 2009 at 1:18 pm

    Thanks Dan, much appreciated.

    Chris

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