Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects A “No-Less-Than” expression.

  • A “No-Less-Than” expression.

    Posted by Justin Maloney on July 25, 2014 at 4:26 pm

    Hey there, kinda new to using expressions. Whats the best way to tell a value not to go above or below a certain value, regardless of what other expressions are being applied?

    For example. A wiggle effect on opacity, to make an image fade in and out, that always remains at at-least 50% and wiggles from there.

    Michael Szalapski replied 12 years, 1 month ago 3 Members · 2 Replies
  • 2 Replies
  • Brian Charles

    July 25, 2014 at 4:54 pm

    [Justin Maloney] “For example. A wiggle effect on opacity, to make an image fade in and out, that always remains at at-least 50% and wiggles from there.”

    Wiggle can take several parameters, the first 2 are frequency and amplitude. Wiggle uses the current value of a property as a base, so setting opacity to 75% and the wiggle amplitude to 25 would restrict it to between 50% and 100%.

    i.e. wiggle(2,25) would wiggle opacity 2 times a second with a range restricted to 25 from the base value.

    If you’re new to expressions you may want to check out Dan Ebberts site https://www.motionscript.com

  • Michael Szalapski

    July 25, 2014 at 5:47 pm

    You could always use clamp expressions too.

    – The Great Szalam
    (The ‘Great’ stands for ‘Not So Great, in fact, Extremely Humble’)

    No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

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