Hi

If you generate the sphere with a constructor 
you create an ID for each abstract generated

for example

[metro 2] (or uzi or until]
I
[f]X[+ 1]
I
[pack f f f] the first is the ID of the sphere the second and third positionXY 
I
[obj 1 1 abs-sphere $1 $2 $3(
I
[s pd-subreceiveabstractsph]

and in this process you inser a second way that implements the coordinates of 
each sphere in a .txt with [msgfile] 
and you save the number of abstract, and when you start your patch, you call 
the coordinates in the  .txt. If you change the position, you can, rewrite this 
with the fonction goto and append. The goto is depending of ID and append is 
the new positionXY. 

p




Le 7 nov. 2010 à 07:14, adam sanches a écrit :

> maybe i wasnt clear:
> 
> i have this patch:
> 
> gemhead
>       |
> repeat 30
>       |
> translateXYZ 10 10 0
>       |
> sphere 
> 
> 
> how can i save the coordinates of the 30 geos into a .txt file?
> i would like to have my txt in this way:
> sphere1 x: 20 y: 20
> sphere2 x: 23 y: 34
> sphere2 x: 13 y: 4
> ....and so on
> 
> 
> how can i do this?
> 
> Thanks
> 
> A.
> 
> 
> 
> 2010/11/6 adam sanches <adam.sanc...@gmail.com>
> Hi, i  need to save into a .txt file all the positions of iterated spheres 
> made with repeat from zexy;
> 
> which mechanism do i need to get the individual position of each geo in the 
> iterated chain?
> 
> thanks
> 
> _______________________________________________
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to