Hi all, when i save a patch, the coords of all object inside the patch are stored in the .pd file
#X oby 8 23 my_abstraction etc...
there is a way to retrieve those coords on runtime ?
Many thanks
-- Lazzaro
Bear with me, because this is kind of roundabout.
The only thing I can think of would be to put in a [textfile] object, and use it to read the patch itself. It will read the pure data patch as though it were a text file, and you could conceivably weed through its output, probably using [route] or [list split] to find your objects... The only other ways I can think of are if the object in question is either a canvas or a scalar. Or a crying child, in which case you'll be able to hear it.
-Chuckk
On 8/2/06, ciccolix ciccolix@tiscalinet.it wrote:
Hi all, when i save a patch, the coords of all object inside the patch are stored in the .pd file
#X oby 8 23 my_abstraction etc...
there is a way to retrieve those coords on runtime ?
Many thanks
-- Lazzaro
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
This patch appears to work, depending on what you are seeking. If you don't comprehend how it works, check the help files; it's really, really, useful stuff. This patch requires Pure Data 0.39, by the way.
-Chuckk
On 8/2/06, ciccolix ciccolix@tiscalinet.it wrote:
Chuckk Hubbard ha scritto:
This patch appears to work
many many thank Chukk, you have made a little search engine :)
but, i was intrested to retrivie the coords before that they come written on the disc.
Well, the only other option would be to send the main patch the message: [pd-mainpatch.pd menusave( just beforehand. It would have to have been saved previously, in order to have a name, but if you've added stuff since saving this would update it. I might be wrong, but I think that's as close as you'll be able to get. Also, be careful using the menusave message, in case you do something wrong and save over the previous working version.
Alternatively, you can tell it the coordinates at which to put the abstraction, in which case you would know the coordinates. [pd-subpatch obj 200 200 trigger b a f( puts a [trigger b a f] object at 200 200 on subpatch.pd. You can also do connections this way.