Search found 2 matches

by charles art
November 20th, 2007, 11:17 am
Forum: Expression Discussion
Topic: set variable via index
Replies: 3
Views: 9451

Re: set variable via index

[ I'd do it completely differently. You could simply use the modulus with a divisor of 4 (%4) as the criteria if (index%4 == 0) {color a} else if ((index+1)%4 == 0) {color b} else if ((index+2)%4 == 0) {color c} else {color d} Would be more flexible than hacking in all indizes first. Mylenium Coooo...
by charles art
November 11th, 2007, 12:37 pm
Forum: Expression Discussion
Topic: set variable via index
Replies: 3
Views: 9451

set variable via index

Hi. I have a bunch of layers with the "circle"-effect applied on it. I have a "control"-layer with 4 defined colors. The aim is: Layer1: color1 Layer2: color2 Layer3: color3 Layer4: color4 Layer5: color1 Layer6: color2 ...(and so on) This is my lousy try, but it doesn't work: (ap...