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
raul diaz wrote:
Hi!
Hi, did you try "table" instead of "array"?
AFAIK, array is just the GUI-variant of "table"...
Either "table" or "array" doesn't work. I use the next scheme:
|table( | |s pd-1_table.pd|
I don't know why!?
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@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
Hi,
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?
Peter
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@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
Sorry, maybe I might give a better explanation.
I want to create all my loop selection each loadbang. So, I could clear the subpatch (f.e.$1_table) at loadbang and after that I create my array and my data structure markers. This way, I avoid to duplicate data structure markers. But, if there is another way to create my data structure markers in a existing subpatch (f.e.$1_table) without duplicate risk, it will be perfect too.
BTW: you left graz again, didn't you?
I was in graz during last year, until juny. I would like to visit graz in
sprig...maybe at springseven festival!
Saludos.
Hallo, raul diaz hat gesagt: // raul diaz wrote:
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.
You could use layered graph-on-parent subpatches, one for your array, and on top of that one for your data structures with the same dimensions.
Getting GOP right for data structures is a bit tricky and has to be done by setting X/Y range and size to matching values in the Properties panel of the subpatch, but it works with some fiddling.
Frank Barknecht _ ______footils.org_ __goto10.org__