[PD] accessing i variable in repeat object?

Jack jack at rybn.org
Fri Aug 8 13:06:18 CEST 2008


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 at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list





More information about the Pd-list mailing list