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; }
thanls
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]
Frank
Frank Barknecht wrote:
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 ++) {
use [f]X[+ 1] like frank said below, but see my comments there..
if (i%5 ==0 continue;
use [spigot] for this part
cube translate (i * 2) 0 0; }
You just put a trigger after the repeat and start counting. E.g.
I'd put a [t a b] here...
[repeat 10] | [t a b] | |
...connected to "0" that resets the [f]
| [f ]X[+ 1] <= "i"
then for the continue stuff it would be
| [t f f]
| | | [mod 5] | |
| [!= 0]
| |
[spigot] | (from [t f f]) | |
[translateXYZ]
Ciao
Hope this makes sense,
Le 8 août 08 à 08:00, Frank Barknecht a écrit :
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.
It's also possible to use double gemhead : Browser/Examples/Gem/02 Advanced/20 double gemhead vs repeat. ++
Jack
[repeat 10] | [t a b] | | | [f ]X[+ 1] <= "i" | | | [mod 5] | | [translateXYZ]
Ciao
Frank
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
hello,
you can find example of this kind of stuf in the Gem examples section.
2.Advenced/19.pointer in the pd more_iterating_2
cyrille
punchik punchik a écrit :
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; }
thanls
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list