Revision 61820aa5 examples/03.AboutSceneGraphs.pd

b/examples/03.AboutSceneGraphs.pd
1
#N canvas 1695 -532 1022 752 10;
1
#N canvas 1497 -429 1022 752 10;
2 2
#X obj 16 65 cnv 15 24 24 empty empty 1 4 12 1 24 -99865 -262144 0
3 3
;
4 4
#X obj 123 153 cnv 15 24 24 empty empty 3 4 12 1 24 -99865 -262144
......
48 48
#X obj 652 384 s \$0-to-SPIN;
49 49
#X msg 645 295 deleteNode p1;
50 50
#X msg 735 295 deleteNode p2;
51
#X msg 726 347 /shp debug;
52 51
#X text 625 237 Deleting all parent nodes will orphan a child. ie \,
53 52
it will still exist in the spinserver \, but won't be in the scene
54 53
graph.;
......
64 63
to delete the specified node \, plus all children and their children.
65 64
;
66 65
#X msg 672 593 /shp detachFrom p2;
67
#X obj 748 702 s \$0-to-SPIN;
66
#X obj 748 710 s \$0-to-SPIN;
68 67
#X obj 592 542 cnv 15 24 24 empty empty 9 4 12 1 24 -99865 -262144
69 68
0;
70 69
#X text 620 104 ... and look at the print outs in the Pd window while
......
75 74
#X msg 642 573 /shp detachFrom p1;
76 75
#X msg 855 610 /shp attachTo p2;
77 76
#X msg 845 590 /shp attachTo p1;
77
#X obj 138 685 s \$0-to-SPIN;
78
#X msg 138 662 debug scenegraph;
79
#X text 96 641 NOTE: you can get a text print-out of the scene graph
80
like this:;
81
#X msg 835 679 /shp attachTo world;
82
#X text 831 649 can also attach to world;
83
#X text 860 661 (no parent);
78 84
#X connect 8 0 2 0;
79 85
#X connect 10 0 11 0;
80 86
#X connect 11 0 12 0;
......
88 94
#X connect 28 0 18 0;
89 95
#X connect 32 0 31 0;
90 96
#X connect 33 0 31 0;
91
#X connect 34 0 31 0;
92
#X connect 36 0 37 0;
93
#X connect 41 0 42 0;
94
#X connect 46 0 42 0;
95
#X connect 47 0 42 0;
96
#X connect 48 0 42 0;
97
#X connect 49 0 42 0;
97
#X connect 35 0 36 0;
98
#X connect 40 0 41 0;
99
#X connect 45 0 41 0;
100
#X connect 46 0 41 0;
101
#X connect 47 0 41 0;
102
#X connect 48 0 41 0;
103
#X connect 50 0 49 0;
104
#X connect 52 0 41 0;

Also available in: Unified diff