hello,
I'm looking for a way to know the position of an object or an abstraction in the pd patch. the best would be for an abstraction to know it's curent position in the patch.
is it possible?
I think this question was asked before, but did'nt find answer in the archives...
thanks, Cyrille
I guess a painful way would be to parse the patch with python (for instance) in order to get the position. Anyway if you create them on the fly, that would be no use.
Cyrille Henry wrote:
hello,
I'm looking for a way to know the position of an object or an abstraction in the pd patch. the best would be for an abstraction to know it's curent position in the patch.
is it possible?
I think this question was asked before, but did'nt find answer in the archives...
thanks, Cyrille
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hello, thanks for the reply,
It's not really what I wanted.
my nead is that the abstraction (or object) should know it's position even it it's moved with the mouse.
So, I would like to be able to create or move objects on the fly, and the object itself has to know it's position on the patcher whatever the user is doing....
canvas offer this posibility : a canvas will reply it's position to a "get_pos" message. I nead the same fonctionality for an object, abstraction or a graph...
is it possible or will it be possible? (I would prefer not to learn python!)
thanks
Cyrille
IOhannes m zmoelnig wrote:
Guillaume Boutard wrote:
Anyway if you create them on the fly, that would be no use.
but if you would create them on the fly, you would already know the position
mfg.a.sdr IOhannes
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
you can use toxy to listen to the editing messages to and keep track of where objects you care about are. not saying it would be easy, but indeed it is possible. -josh
Cyrille Henry wrote:
hello, thanks for the reply,
It's not really what I wanted.
my nead is that the abstraction (or object) should know it's position even it it's moved with the mouse.
So, I would like to be able to create or move objects on the fly, and the object itself has to know it's position on the patcher whatever the user is doing....
canvas offer this posibility : a canvas will reply it's position to a "get_pos" message. I nead the same fonctionality for an object, abstraction or a graph...
is it possible or will it be possible? (I would prefer not to learn python!)
thanks
Cyrille
IOhannes m zmoelnig wrote:
Guillaume Boutard wrote:
Anyway if you create them on the fly, that would be no use.
but if you would create them on the fly, you would already know the position
mfg.a.sdr IOhannes
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi,
forcing a tot into spying on that would be extremely tricky, unless there is a specialized functionality built into the poor thing.
I do not know yet how to design a generic feature, but, since it really is quite a tot-like feature, esp. in a ``Pd for presentation'' context, have added a few dot-tilde patterns: ".~tag", ".~owner", and ".~root", which, at least, work for abstraction (or [pd]) boxes. Just tested this:
query .~owner.c coords .~tag tot .~owner.c itemconfig .~tagR -width 5 -fill red
will try to gather all the new toxy stuff for a release, soon...
Krzysztof
Josh Steiner wrote:
you can use toxy to listen to the editing messages to and keep track of where objects you care about are. not saying it would be easy, but indeed it is possible. -josh
Cyrille Henry wrote:
...
my nead is that the abstraction (or object) should know it's position even it it's moved with the mouse.