hello again pd people, does anyone know how/if you can listen to the messages that get sent to the pd object when you do editing on an open pd canvas? my brother has a really cool project in the works that he needs to do this for, we've poked around a little and havn't seen anything glaringly obvious.
i'm assuming that this is the way things work: tcl/tk sends raw controller info over a tcp pipe to the pd core, which then coverts that into pd messages (actions like cut, select, select file menu, etc) ... so, if i'm correct, is there a way to "sniff" those messages and use them for my own neffarious purposes?
thanks again,
-Josh
if youre on lnx try
# ngrep -d lo
[Josh Steiner]->[[PD] "intercepting" editing messages?]->[02-09-26 11:32]
|hello again pd people, does anyone know how/if you can listen to the |messages that get sent to the pd object when you do editing on an open |pd canvas? my brother has a really cool project in the works that he |needs to do this for, we've poked around a little and havn't seen |anything glaringly obvious. | |i'm assuming that this is the way things work: tcl/tk sends raw |controller info over a tcp pipe to the pd core, which then coverts that |into pd messages (actions like cut, select, select file menu, etc) ... |so, if i'm correct, is there a way to "sniff" those messages and use |them for my own neffarious purposes? | |thanks again, | |-Josh | | |_______________________________________________ |PD-list mailing list |PD-list@iem.kug.ac.at |http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list |
Josh,
I'm wondering about this myself, but I found a lot of information from a link sent in another thread, by Damien:
you can try xgui. It's dedicated to 2D graphics => http://dh7.free.fr
Towards the bottom of the page is documentation on PD-MSG. The docs by Krzysztof Czaja are very interesting.
What I didn't pick up on yet is where exactly to find that port/pipe to the pd core...
Cheers, adam
Josh Steiner said this at Thu, 26 Sep 2002 11:32:44 -0700:
hello again pd people, does anyone know how/if you can listen to the messages that get sent to the pd object when you do editing on an open pd canvas? my brother has a really cool project in the works that he needs to do this for, we've poked around a little and havn't seen anything glaringly obvious.
i'm assuming that this is the way things work: tcl/tk sends raw controller info over a tcp pipe to the pd core, which then coverts that into pd messages (actions like cut, select, select file menu, etc) ... so, if i'm correct, is there a way to "sniff" those messages and use them for my own neffarious purposes?
thanks again,
-Josh
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
these docs are very nice, though when i last read them, if i remeber correctly, it only documents messages that you can send to the pd object to script patch editing/creation and such, now how you can intercept what messages the pd object gets from the TCL gui... while exceedingly cool, not quite what we need... thanks though :)
-Josh
Adam T. Lindsay wrote:
Josh,
I'm wondering about this myself, but I found a lot of information from a link sent in another thread, by Damien:
you can try xgui. It's dedicated to 2D graphics => http://dh7.free.fr
Towards the bottom of the page is documentation on PD-MSG. The docs by Krzysztof Czaja are very interesting.
What I didn't pick up on yet is where exactly to find that port/pipe to the pd core...
Cheers, adam
Josh Steiner said this at Thu, 26 Sep 2002 11:32:44 -0700:
hello again pd people, does anyone know how/if you can listen to the messages that get sent to the pd object when you do editing on an open pd canvas? my brother has a really cool project in the works that he needs to do this for, we've poked around a little and havn't seen anything glaringly obvious.
i'm assuming that this is the way things work: tcl/tk sends raw controller info over a tcp pipe to the pd core, which then coverts that into pd messages (actions like cut, select, select file menu, etc) ... so, if i'm correct, is there a way to "sniff" those messages and use them for my own neffarious purposes?
thanks again,
-Josh
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
hi,
with this little patch:
--- s_inter.c~ Sat Jul 20 23:21:56 2002 +++ s_inter.c Sat Sep 28 14:54:00 2002 @@ -308,7 +308,15 @@ outlet_setstacklim(); if (x->sr_socketreceivefn) (*x->sr_socketreceivefn)(x->sr_owner, inbinbuf);
else binbuf_eval(inbinbuf, 0, 0, 0);
else
{
t_symbol *sniffsym = gensym("#spy");
if (sniffsym->s_thing)
pd_forwardmess(sniffsym->s_thing,
binbuf_getnatom(inbinbuf),
binbuf_getvec(inbinbuf));
binbuf_eval(inbinbuf, 0, 0, 0);
}
everything sent from the gui will get monitored in the [r #spy] object (you may [route pd] then, if you wish).
Krzysztof
Josh Steiner wrote: ...
correctly, it only documents messages that you can send to the pd object to script patch editing/creation and such, now how you can intercept what messages the pd object gets from the TCL gui... while exceedingly
thanks to the man with the rockin name, this looks like just what i was thinking of :) i've forwarded it on to my brother and i'll report back here on my success once i have a chance to muck about with this.
-Josh
Krzysztof Czaja wrote:
hi,
with this little patch:
--- s_inter.c~ Sat Jul 20 23:21:56 2002 +++ s_inter.c Sat Sep 28 14:54:00 2002 @@ -308,7 +308,15 @@ outlet_setstacklim(); if (x->sr_socketreceivefn) (*x->sr_socketreceivefn)(x->sr_owner, inbinbuf);
else binbuf_eval(inbinbuf, 0, 0, 0);
else
{
t_symbol *sniffsym = gensym("#spy");
if (sniffsym->s_thing)
pd_forwardmess(sniffsym->s_thing,
binbuf_getnatom(inbinbuf),
binbuf_getvec(inbinbuf));
binbuf_eval(inbinbuf, 0, 0, 0);
}
everything sent from the gui will get monitored in the [r #spy] object (you may [route pd] then, if you wish).
Krzysztof
Josh Steiner wrote: ...
correctly, it only documents messages that you can send to the pd
object
to script patch editing/creation and such, now how you can intercept what messages the pd object gets from the TCL gui... while exceedingly
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list