FORUMS: list search recent posts

Wiggle and clamp expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lloyd Lively
Wiggle and clamp expression
on Nov 2, 2016 at 7:33:24 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


Return to posts index

Dan Ebberts
Re: Wiggle and clamp expression
on Nov 2, 2016 at 10:09:10 pm

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

wiggle(3,.4)

Dan



Return to posts index

Lloyd Lively
Re: Wiggle and clamp expression
on Nov 3, 2016 at 1:34:20 pm

I'll try that. Much appreciated.

- - - - - - - - - - - - -
Lloyd Lively
Oportet Eum Occidi


Return to posts index


joshua faget
Re: Wiggle and clamp expression
on Nov 3, 2016 at 3:33:43 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])


Return to posts index

Lloyd Lively
Re: Wiggle and clamp expression
on Nov 3, 2016 at 3:36:12 pm

Great! Thank you very much.

- - - - - - - - - - - - -
Lloyd Lively
Oportet Eum Occidi


Return to posts index

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