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
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.sanches@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
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.sanches@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
hello,
Le 07/11/2010 07:14, adam sanches a écrit :
maybe i wasnt clear:
i have this patch:
gemhead | repeat 30 | translateXYZ 10 10 0 | sphere
gemlist_info after the sphere will send you the sphere postion.
with a conter to track the sphere Number, you can pack all the information you wish in a list and create a "ad" message to send to the textfile object.
Cyrille
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.sanches@gmail.com mailto:adam.sanches@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
On Sat, 6 Nov 2010, adam sanches wrote:
maybe i wasnt clear:
i have this patch:
gemhead | repeat 30 | translateXYZ 10 10 0 | sphere
How about using [GEMglFeedbackBuffer] and [GEMglRenderMode] with GL_FEEDBACK ? That's basically what I told you on IRC.
(except I said to send "render_mode feedback" to [gf/gl] and then I realised [gf/gl] doesn't have the "feedback_buffer" method yet ; but it's not a problem to mix together GEM and [gf/gl] commands)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC