Just starting to play with the templates and data structures.
How do the plot/draw objects know where to put their output?
In a patch I am trying they suddenly appear to plot in their own template window, and not to the data window. Maybe this is because I forgot to make a pd data object first.
Is there a way to change this behaviour.
regards
Gerard
gerard van dongen wrote:
Just starting to play with the templates and data structures.
How do the plot/draw objects know where to put their output?
In a patch I am trying they suddenly appear to plot in their own template window, and not to the data window. Maybe this is because I forgot to make a pd data object first.
Is there a way to change this behaviour.
regards
Gerard
oops,
I used the wrong argument with the traverse message. I will now try to use it to target different windows and see if and how it crashes.
gerard
I would like to have a patch automatically open the "data" canvas with my datastructures. All the example files seem to do this, but I can't seem to get my patch to behave the same way. Is there some message I can send to open it?
BTW is there some documentation on ;pd messages , what messages are there, what do they do. The documentation is a bit sparse there.
regards
gerard
is there anyway of finding out the id of the current window, so that ;pd messages can be sent which modify the current patch?
if so, would it be technically possible to make an abstraction that has a variable number of inlets/outlets (that is, triggered by a loadbang, it would use the creation parameters to build additional inlet/outlet objects).
there are possibly a lot of issues i havent considered, regarding the order of events during creation.
sorry, i think i have a bit of a repressed fetish for self-modifying code :)
pix.
On Fri, 26 Jan 2001, gerard van dongen wrote:
I would like to have a patch automatically open the "data" canvas with my datastructures. All the example files seem to do this, but I can't seem to get my patch to behave the same way. Is there some message I can send to open it?
BTW is there some documentation on ;pd messages , what messages are there, what do they do. The documentation is a bit sparse there.
regards
gerard
pix@test.at writes:
is there anyway of finding out the id of the current window, so that ;pd messages can be sent which modify the current patch?
It should be possible by writing a small external at least ..????
if so, would it be technically possible to make an abstraction that has a variable number of inlets/outlets (that is, triggered by a loadbang, it would use the creation parameters to build additional inlet/outlet objects).
there are possibly a lot of issues i havent considered, regarding the order of events during creation.
sorry, i think i have a bit of a repressed fetish for self-modifying code :)
.. and now for recursion
Guenter
If you name a subpatch "fred" for instance, you can send messages to "pd-fred". I've used it to add text comments to windows automatically, but in principle you should be able to do anything that appears in a saved Pd file (adding and connecting objects).
cheers Miller
On Fri, Jan 26, 2001 at 05:50:44PM +0100, Guenter Geiger wrote:
pix@test.at writes:
is there anyway of finding out the id of the current window, so that ;pd messages can be sent which modify the current patch?
It should be possible by writing a small external at least ..????
if so, would it be technically possible to make an abstraction that has a variable number of inlets/outlets (that is, triggered by a loadbang, it would use the creation parameters to build additional inlet/outlet objects).
there are possibly a lot of issues i havent considered, regarding the order of events during creation.
sorry, i think i have a bit of a repressed fetish for self-modifying code :)
.. and now for recursion
Guenter
|If you name a subpatch "fred" for instance, you can send messages to |"pd-fred". I've used it to add text comments to windows automatically, |but in principle you should be able to do anything that appears in a saved |Pd file (adding and connecting objects).
jip, the problem is more how to access a new window for example, when you go "pd menu-new;" the window pops up untitled .. when you start having several untitleds it will get tricky .. you can do pd menu-saveas or so, but that just pops up the save dialog and i couldnt find out yet how to pass the filename (= windowname) to saveas to do an automatic-save-as ...
-- I x d U . o r g
I don't know a good solution for this problem... one possible approach might be:
make an empty subpatch, call it "patch 1".
Send a message, "pd-patch1 ojb 10 10 pd real-patch"
Then, send messages to the sub-sub-patch, using "pd-real-patch"
to delete it, "pd-patch1 clear".
I know that's dumb. I don't yet have a good way to do this in general...
On Wed, Apr 11, 2001 at 01:57:09PM +0200, _-¯-_ wrote:
|If you name a subpatch "fred" for instance, you can send messages to |"pd-fred". I've used it to add text comments to windows automatically, |but in principle you should be able to do anything that appears in a saved |Pd file (adding and connecting objects).
jip, the problem is more how to access a new window for example, when you go "pd menu-new;" the window pops up untitled .. when you start having several untitleds it will get tricky .. you can do pd menu-saveas or so, but that just pops up the save dialog and i couldnt find out yet how to pass the filename (= windowname) to saveas to do an automatic-save-as ...
-- I x d U . o r g