Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle and clamp expression

  • Wiggle and clamp expression

    Posted by Lloyd Lively on November 2, 2016 at 7:33 pm

    I have a wiggle expression on the Fill 1: color of a shape layer

    wiggle(3,2);

    this is being used to just change the color of a Christmas light bulb. All the other colors are fine but I would rather it didn’t use black or white. I’m not good enough with expressions yet to write the clamp to set the limits. Any help would be greatly appreciated. If there is a better way please let me know.

    Lloyd

    – – – – – – – – – – – – –
    Lloyd Lively
    Oportet Eum Occidi

    Lloyd Lively replied 9 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    November 2, 2016 at 10:09 pm

    If you set the color to mid grey, something like this should keep it from going black or white:

    wiggle(3,.4)

    Dan

  • Lloyd Lively

    November 3, 2016 at 1:34 pm

    I’ll try that. Much appreciated.

    – – – – – – – – – – – – –
    Lloyd Lively
    Oportet Eum Occidi

  • Joshua Faget

    November 3, 2016 at 3:33 pm

    This will change the Hue of the color only, not the saturation or brightness… you can adjust it manually from the AE color picker!

    Speed=4;
    Amount= 100; //a value between 0,100

    HSL = rgbToHsl(value);
    H = linear(wiggle(Speed,Amount)[0]/100,-1,1,0,1);
    S=HSL[1];
    L=HSL[2];
    hslToRgb([H,S,L,1])

  • Lloyd Lively

    November 3, 2016 at 3:36 pm

    Great! Thank you very much.

    – – – – – – – – – – – – –
    Lloyd Lively
    Oportet Eum Occidi

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