FORUMS: list search recent posts

Changing objects color over duplication

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gus Favassa
Changing objects color over duplication
on Feb 22, 2012 at 10:10:56 am

Hello guys, this is my first post here!
I've searched the whole internet and couldnt find any topics regarding the use of the expression "effect("Hue/Saturation")(value)".
I want to change this object layer color by inserting a random value through the colorize hue property each time a duplicate it, but it doesnt seem to work. When I alt click it, AE gives me this random value (7) in my case, and it doesnt work when I change it. Any ideas?

Thanks in advance!

color = value(360, 0);
effect("Hue/Saturation")(color)


Return to posts index

Kevin Camp
Re: Changing objects color over duplication
on Feb 22, 2012 at 3:39:11 pm

for what i think you are doing, i think all you need is to put a value in the expression field. you don't need to specify the effect property of the property that you are applying it to... that part is implied.

ie, you could simply enter 57 as the expression and the result would be the value for that property would be 57.

since you just want a random value, try just random(0,360); you should need anything else.

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

Gus Favassa
Re: Changing objects color over duplication
on Feb 22, 2012 at 5:36:42 pm

Perfect!
It works now. I didn't know it was that simple!
Thank you so much!


Return to posts index


Dan Ebberts
Re: Changing objects color over duplication
on Feb 22, 2012 at 6:25:59 pm

If you don't want it to change every frame, you'd also want to set the random seed:

seedRandom(index,true);
random(0,360)


Dan



Return to posts index

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