Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle expression for color, avoid black or white

  • Wiggle expression for color, avoid black or white

    Posted by Graham Calhoun on November 9, 2009 at 9:21 pm

    Hi, I’m new to expressions in AE. I’m trying to create a marquee effect with colored round shapes. I’ve got the wiggle expression on the color channel, and it works great. However, I’d like to avoid using black and white. Is there some way to keep the spectrum between those two colors?

    Right now, I’m just using “wiggle(30,35)” in the color fill channel.

    Thanks!

    Graham

    Graham

    Graham Calhoun replied 16 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Xinlai Ni

    November 9, 2009 at 9:30 pm

    you may want to use the clamp() method:

    clamp(value, limit1, limit2)
    Return type: Number or Array.

    Argument type: value, limit1, and limit2 are Numbers or Arrays.

    The value of each component of value is constrained to fall between the values of the corresponding values of limit1 and limit2.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Graham Calhoun

    November 10, 2009 at 9:45 am

    Thanks, Xinlai Ni. I’ll give that a shot.

    Graham

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