Color change expression help!

Scripting for After Effects

Color change expression help!

Postby klaasisbaas on 10/16/2015, 1:42 pm

HI,

i have made a simple shape layer with a repeater on it which i key framed randomly, and looped that with a expression. Now i want to change the color depending on the values that the 'copies' property makes. I tried some things and finally came out without a error from After effects, but the colors won't change. >-||

Can somebody tell me what i'm doing wrong?

i included a screenshot with the expressions and all!

Thanks in advance.
Attachments
Naamloos-1.jpg
screenshot
klaasisbaas
 
Posts: 1
Joined: 10/16/2015, 1:25 pm
System Specs: Intel i7 4790K
32GB Ram
Nvidia GTX 770
SSD 512GB
HDD 3TB

Re: Color change expression help!

Postby star+circle on 10/20/2015, 12:37 pm

Not possible in that way. The repeater is using the same color no matter what.

Solution: Use two copies of the shape with same repeater settings but a different color, and fade the end opacity of one of the copies to 0 (or based on the copy amount).
Attachments
repeater-color-change.jpg
Color change for Repeater with two copies of shape
star+circle
 
Posts: 781
Joined: 12/6/2014, 3:07 pm
Location: Finland

Re: Color change expression help!

Postby vjk_vfx on 05/4/2016, 5:18 am

you can also animate by gradient
Attachments
color change with animation.jpg
vjk_vfx
 
Posts: 15
Joined: 05/2/2016, 11:57 pm
System Specs: i3, gigabytes
8gb ram
500 hdd


Return to After Effects Expressions