#N struct template8 float x float y float w float h float q; #N canvas 425 47 448 418 10; #X floatatom 22 288 0 0 0 0 - - -; #X floatatom 22 240 0 0 0 0 - - -; #X floatatom 22 192 0 0 0 0 - - -; #X floatatom 22 144 0 0 0 0 - - -; #X floatatom 285 224 0 0 0 0 - - -; #X floatatom 251 224 0 0 0 0 - - -; #X floatatom 217 224 0 0 0 0 - - -; #X floatatom 184 224 0 0 0 0 - - -; #X floatatom 319 224 0 0 0 0 - - -; #X floatatom 22 335 0 0 0 0 - - -; #N canvas 454 39 363 388 data8 0; #X scalar template8 28 123 18 16 917 \;; #X scalar template8 297 247 6 32 66 \;; #X scalar template8 185 -30 46 71 78 \;; #X scalar template8 20 259 49 42 220 \;; #X scalar template8 111 142 28 72 634 \;; #X scalar template8 249 66 46 11 48 \;; #X scalar template8 25 3 70 11 903 \;; #X scalar template8 259 -23 21 33 352 \;; #X scalar template8 229 116 25 27 710 \;; #X scalar template8 281 207 50 25 612 \;; #X scalar template8 55 114 48 40 321 \;; #X scalar template8 176 182 39 66 866 \;; #X scalar template8 155 69 27 27 125 \;; #X scalar template8 115 26 66 32 319 \;; #X scalar template8 134 2 50 25 454 \;; #X scalar template8 274 58 21 45 583 \;; #X scalar template8 269 171 25 38 548 \;; #X scalar template8 216 190 24 73 214 \;; #X scalar template8 215 256 50 78 652 \;; #X scalar template8 287 32 72 19 325 \;; #X restore 184 280 pd data8; #N canvas 206 292 507 237 template8 0; #X obj 24 167 filledpolygon q 0 1 0 0 w 0 w h 0 h; #X obj 25 190 drawnumber q 0 0 0; #X obj 24 19 struct template8 float x float y float w float h float q; #X obj 24 74 route select; #X obj 24 103 outlet; #X obj 32 46 print struct-template8; #X text 131 82 [struct] outputs messages notifying you when objects of this structure are selected or deselected. Here we only catch selection. ; #X connect 2 0 3 0; #X connect 2 0 5 0; #X connect 3 0 4 0; #X restore 184 144 pd template8; #X obj 22 168 set template8 x; #X obj 22 216 set template8 y; #X obj 22 264 set template8 w; #X obj 22 311 set template8 h; #X obj 22 358 set template8 q; #X obj 184 200 get template8 x y w h q; #X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header selection 20 10 1 18 -261139 -33289 0; #X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp ; #X obj 1 396 cnv 15 445 20 empty \$0-pddp.cnv.footer empty 20 12 0 14 -233017 -33289 0; #N canvas 45 271 494 284 META 0; #X text 12 105 WEBSITE http://crca.ucsd.edu/~msp/; #X text 12 85 AUTHOR Miller Puckette; #X text 12 65 LIBRARY PDDP; #X text 12 25 LICENSE SIBSD; #X text 12 125 HELP_PATCH_AUTHORS Updated for release 0.39. Jonathan Wilkes revised the patch to conform to the PDDP template for Pd version 0.42.; #X text 12 45 DESCRIPTION selection; #X text 12 5 KEYWORDS data_structure GUI tutorial; #X restore 392 398 pd META; #N canvas 13 202 428 190 References 0; #X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 14 -261139 -33289 0; #X text 7 2 selecting scalars- Related Help Documents; #X text 19 37 Links:; #X restore 103 398 pd References; #X obj 6 398 pddp/pddplink ../5.reference/pddp/help.pd -text help; #X text 19 36 This patch demonstrates catching the selection so you can make control panels to edit parameters. The [struct] object outputs a pointer to any selected object of type struct8.; #X text 19 78 To try it \, unlock the subpatch (data8) and select something. The 5 paramters should show up under the [get] object in this window \, and you should be able to change them with the [set] object.; #X connect 0 0 15 0; #X connect 1 0 14 0; #X connect 2 0 13 0; #X connect 3 0 12 0; #X connect 9 0 16 0; #X connect 11 0 12 1; #X connect 11 0 13 1; #X connect 11 0 14 1; #X connect 11 0 15 1; #X connect 11 0 16 1; #X connect 11 0 17 0; #X connect 17 0 7 0; #X connect 17 1 6 0; #X connect 17 2 5 0; #X connect 17 3 4 0; #X connect 17 4 8 0;