[PD] Data structure loop selection

Peter Plessas plessas at mur.at
Sat Feb 3 22:13:16 CET 2007


just a quick one, other people might give better advice though:
Afaik the target (f.e. subpatch) must exist before you can script. Why? 
Because you have to know the name of your target, f.e. [pd target].
Although even your main (root) patch has such an unique name (some 
number i think), you would have to find it out (perhaps it is the same 
as the $0 variable), or use the (deprecated?) [namecanvas] object to 
explicitely name your patch.

So either someone comes up with a better explanation or you try creating 
that one subpatch by hand, and after that, start scripting objects, 
messages, etc. inside.

Search the mailing-list archives as well.

good luck,

BTW: you left graz again, didn't you?


raul diaz wrote:
> Thanks Peter!
> Now I can create a table object with your messages.
> But the problem is that I don't want to create a subpatch with a table.
> Instead of that I would like to create a table in a existing subpatch
> ($1_table) with all my data structure markers. Maybe it's better to create
> first my subpatch $1_table with your messages and then create all the data
> structure inside.
> Anyway, thanks a lot and regards.
> 2007/2/3, Peter Plessas <plessas at mur.at>:
>> Hi,
>> ah you are trying to create an object inside a subpatch, right
>> (scripting)?
>> Then the correct syntax would be:
>> [obj 10 10 table(
>>   |
>>   |
>> [s pd-1_table]
>> where "1_table" is the name of a subpatch, so i am not sure if you are
>> to append the suffix ".pd"
>> 10 10 is the X and Y position of the object.
>> There are some docs online about pd-scripting:
>> http://puredata.org/community/pdwiki/PdInternalMessages/?searchterm=pd-msg 
>> lg,P

More information about the Pd-list mailing list