Hi, A few questions regarding dynamic patching using only Pd messages (or internals) :
the whole canvas ?
could take ? Pd seems to be likely to crash when we create GUI objects using a message with the atom "empty" in it.
Is the use of [namecanvas $0] recommended or totally deprecated ?
Where can I find an abstraction or object to convert any familiar
representation of colors to the Tk colors (or whatever is used for GUI objects) ?
Alexandre Quessy http://alexandre.quessy.net
Alexandre Quessy wrote:
- Where can I find an abstraction or object to convert any familiar
representation of colors to the Tk colors (or whatever is used for GUI objects) ?
[#color] from gridflow has code that does this, or the "edit" subpatch of the iemgui help objects has some rgb->iemgui conversion stuff.
hi alexandre,
if you need a lot of dynamic patching, the object I recommend is [dyn~]. if you just want to edit "real" patches, then it is not really possible. or at least not without bad hacks. the use of [namecanvas $0] in this particular way is I think not possible, because $0 will be substituted by a number and you cannot use numbers for namecanvas names. but [namecanvas $0-] should work and I already used such construnctions. try to create the gui objects with all its arguments. documentation about how to create arguments is not easy to find, but exists. maybe search the archieves.
marius.
Alexandre Quessy wrote:
Hi, A few questions regarding dynamic patching using only Pd messages (or internals) :
- Is it possible to delete and disconnect objects without clearing
the whole canvas ?
- Is it ok to create GUI objects with not even half the arguments it
could take ? Pd seems to be likely to crash when we create GUI objects using a message with the atom "empty" in it.
Is the use of [namecanvas $0] recommended or totally deprecated ?
Where can I find an abstraction or object to convert any familiar
representation of colors to the Tk colors (or whatever is used for GUI objects) ?
Thanks !
On Sun, 2007-02-18 at 01:55 -0500, marius schebella wrote:
try to create the gui objects with all its arguments. documentation about how to create arguments is not easy to find, but exists. maybe search the archieves.
or just have a look at the pd-file with a text-editor.
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Hallo, Alexandre Quessy hat gesagt: // Alexandre Quessy wrote:
- Is the use of [namecanvas $0] recommended or totally deprecated ?
if you want to edit the content of subpatches I'd say it's totally deprecated because it's completely unnecessary, as every subpatch has its own receiver "pd-subpatchname" builtin. This also works for subpatch names containing $0 as: "pd-$0-subpatchname"
- Where can I find an abstraction or object to convert any familiar
representation of colors to the Tk colors (or whatever is used for GUI objects) ?
E.g. here: http://lists.puredata.info/pipermail/pd-list/2006-03/036005.html
Frank Barknecht _ ______footils.org_ __goto10.org__
Alexandre Quessy a écrit :
Hi, A few questions regarding dynamic patching using only Pd messages (or internals) :
- Is it possible to delete and disconnect objects without clearing
the whole canvas ?
yes [find 'objectname', cut( and [findagain, cut( if your patch isn't so complicated, it's possible to use these messages, with a counter for tracking the object to delete. I use it for creating-destroying GOP in a single patch, like in any sound software where you can ,for example, adding or removing an instrument, or an fx...
- Is it ok to create GUI objects with not even half the arguments it
could take ? Pd seems to be likely to crash when we create GUI objects using a message with the atom "empty" in it.
Yes, but the GUI will have the default values
- Is the use of [namecanvas $0] recommended or totally deprecated ?
is namecanvas usefull?
- Where can I find an abstraction or object to convert any familiar
representation of colors to the Tk colors (or whatever is used for GUI objects) ?
in iem gui help files, it's just a patch that is multiplexing the three color numbers RGB into a single negative number
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
Am 18.02.2007 um 14:30 schrieb Patco:
Alexandre Quessy a écrit :
- Is it possible to delete and disconnect objects without clearing
the whole canvas ?
yes [find 'objectname', cut( and [findagain, cut(
hi patco, list,
could you elaborate this a bit? how should that work?
not like this obviously:
thanks, max
Am 27.02.2007 um 16:59 schrieb Max Neupert:
Am 18.02.2007 um 14:30 schrieb Patco:
Alexandre Quessy a écrit :
- Is it possible to delete and disconnect objects without clearing
the whole canvas ?
yes [find 'objectname', cut( and [findagain, cut(
hi patco, list,
could you elaborate this a bit? how should that work?
ok, maybe more coffee was needed. i've found the answer.
interesting is that pd enters the edit mode when deleting an object,
but not when creating one.
max
Max Neupert a écrit :
Am 27.02.2007 um 16:59 schrieb Max Neupert:
Am 18.02.2007 um 14:30 schrieb Patco:
Alexandre Quessy a écrit :
- Is it possible to delete and disconnect objects without clearing
the whole canvas ?
yes [find 'objectname', cut( and [findagain, cut(
hi patco, list,
could you elaborate this a bit? how should that work?
ok, maybe more coffee was needed. i've found the answer. interesting is that pd enters the edit mode when deleting an object, but not when creating one.
max
hello, you might need to create your iem gui into a subpatch for finding their individual name, an example is attached, pc.
#N canvas 228 55 628 380 10; #X msg 101 370 ; findagain , cut; #X msg 217 302 ; find label , cut; #X text 76 130 create; #X text 333 62 destroy??; #X msg 338 301 ; find 'label' , cut; #X obj 109 154 t a a; #X floatatom 200 42 5 0 0 0 - - -; #X obj 87 154 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 95 199 pack $0 f f; #X obj 342 80 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 260 118 pack $0 f; #X obj 141 175 * 40; #X text 187 21 x coordinate of obj and $0 is the label index; #X msg 245 141 ; pd-dynamic_gop.pd find $1tgl$2 , cut , editmode 0; #X msg 96 226 ; pd-dynamic_gop.pd obj 10 $3 pd $1tgl$2 ; pd-$1tgl$2 obj 100 100 tgl 15 0 sendsymbol receivesymbol label 0 -6 0 8 -262144 -1 -1 0 , donecanvasdialog 1 -1 1 0 -1 1 1 30 30 99 99 , vis 0; #X connect 5 0 8 1; #X connect 5 1 11 0; #X connect 6 0 5 0; #X connect 6 0 10 1; #X connect 7 0 8 0; #X connect 8 0 14 0; #X connect 9 0 10 0; #X connect 10 0 13 0; #X connect 11 0 8 2; #X coords 0 0 1 1 99 99 0;