[send] and [receive] objects have static creation arguments, and cannot be changed dynamically, however its possible to change the attribute using abstractions and a bit of dynamic patching, see the attached files. quite simply a matter of creating the send + receive objects dynamically in a subpatch and routing the send/receive outlet/inlet to the abstractions outlet/inlet.. hope this helps..
dmotd On Sunday 01 February 2009 00:55:24 Rory Walsh wrote: > Quick question: is it possible to dynamically alter the send/receive > symbols for GUI objects? I know that one can change most attributes > through various messages but is it possible to alter their > send/receive symbols? > > Rory. > > p.s. It's been a few years since I posted any messages here. I hope > everyone is keeping well! > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list
#N canvas 80 349 450 300 10; #N canvas 781 144 450 300 \$0-receive 1; #X obj 10 10 r test; #X obj 10 30 s 1227-dyn-receive; #X connect 0 0 1 0; #X restore 202 43 pd \$0-receive; #X obj 83 130 f \$0; #X obj 56 150 list; #X obj 56 202 s pd-\$0-receive; #X obj 56 110 t a b; #X obj 204 120 outlet; #X obj 56 64 inlet; #X msg 56 170 clear \, obj 10 10 r \$1 \, obj 10 30 s \$2-dyn-receive \, connect 0 0 1 0; #X obj 204 80 r \$0-dyn-receive; #X obj 114 38 loadbang; #X obj 114 77 symbol \$1; #X connect 1 0 2 1; #X connect 2 0 7 0; #X connect 4 0 2 0; #X connect 4 1 1 0; #X connect 6 0 4 0; #X connect 7 0 3 0; #X connect 8 0 5 0; #X connect 9 0 10 0; #X connect 10 0 4 0;
#N canvas 566 176 518 325 10; #X obj 34 -8 inlet; #N canvas 781 144 450 300 \$0-receive 1; #X obj 10 10 r test; #X obj 10 30 s 1233-dyn-send; #X connect 0 0 1 0; #X restore 32 44 pd \$0-receive; #X obj 130 149 s pd-\$0-receive; #X obj 158 67 f \$0; #X obj 131 87 list; #X obj 131 47 t a b; #X obj 34 15 s \$0-dyn-send; #X obj 136 14 inlet; #X obj 212 -25 loadbang; #X obj 212 14 symbol \$1; #X msg 127 111 clear \, obj 10 30 r \$2-dyn-send \, obj 10 10 s \$1 \, connect 0 0 1 0; #X connect 0 0 6 0; #X connect 3 0 4 1; #X connect 4 0 10 0; #X connect 5 0 4 0; #X connect 5 1 3 0; #X connect 7 0 5 0; #X connect 8 0 9 0; #X connect 9 0 5 0; #X connect 10 0 2 0;
#N canvas 0 0 450 300 10; #X floatatom 272 142 5 0 0 0 - - -; #X floatatom 90 115 5 0 0 0 - - -; #X obj 273 182 s now; #X msg 85 27 symbol now; #X obj 86 78 dyn-receive test; #X obj 219 76 dyn-send test; #X floatatom 220 47 5 0 0 0 - - -; #X msg 289 24 symbol great; #X obj 92 184 r great; #X floatatom 93 210 5 0 0 0 - - -; #X obj 156 185 r test; #X obj 223 183 s test; #X floatatom 160 216 5 0 0 0 - - -; #X floatatom 222 157 5 0 0 0 - - -; #X msg 319 49 symbol test; #X msg 114 52 symbol test; #X connect 0 0 2 0; #X connect 3 0 4 0; #X connect 4 0 1 0; #X connect 6 0 5 0; #X connect 7 0 5 1; #X connect 8 0 9 0; #X connect 10 0 12 0; #X connect 13 0 11 0; #X connect 14 0 5 1; #X connect 15 0 4 0;
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list