[PD] accessing i variable in repeat object?
Frank Barknecht
fbar at footils.org
Fri Aug 8 08:00:19 CEST 2008
Hallo,
punchik punchik hat gesagt: // punchik punchik wrote:
> is it possible to access to the increment variable in repeat? when i repeat a geo in gem having access to the "i " variable allows me creating diferent 3d patterns....
>
> how can i do something like this with repeat?
>
>
> for (i = 0; i = 10 ; i ++) {
> if (i%5 ==0 continue;
> cube
> translate (i * 2) 0 0;
> }
You just put a trigger after the repeat and start counting. E.g.
[repeat 10]
|
[t a b]
| |
| [f ]X[+ 1] <= "i"
| |
| [mod 5]
| |
[translateXYZ]
Ciao
--
Frank
More information about the Pd-list
mailing list