-
Notifications
You must be signed in to change notification settings - Fork 3
/
3. IOBox 3.v4p
275 lines (275 loc) · 15.5 KB
/
3. IOBox 3.v4p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE PATCH SYSTEM "http://vvvv.org/versions/vvvv45beta26.dtd" >
<PATCH nodename="C:\kimchiandchips\Workshops\VVVV-basics,mapping\3. IOBox #3.v4p" filename="C:\kimchiandchips\Workshops\VVVV-basics,mapping\3. IOBox #3.v4p" locked="0" systemname="3. IOBox #3">
<BOUNDS height="12555" left="14490" top="885" type="Window" width="8370">
</BOUNDS>
<NODE componentmode="InABox" id="0" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="150" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="1095" left="225" top="150" type="Box" width="7665">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|3. IOBox #3|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="1">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="42">
</PIN>
</NODE>
<NODE componentmode="InABox" id="2" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="105" top="11205" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="750" left="105" top="11205" type="Box" width="5325">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|Created by Elliot Woods.&cr;&lf;Distributed under the MIT license (check file LICENSE) for details.&cr;&lf;Generally you can do whatever you want with these files. have fun!|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="1">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
</NODE>
<NODE componentmode="InABox" id="5" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="5805" top="2640" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="540" left="5805" top="2640" type="Box" width="2085">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Author">
</PIN>
</NODE>
<NODE componentmode="InABox" id="6" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="1260" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="1155" left="225" top="1260" type="Box" width="7665">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Description">
</PIN>
</NODE>
<INFO author="Elliot Woods" description="Spreaded IOBoxes, the Inspektor" tags="IOBox, Slider, Inspektor, Help patch">
</INFO>
<NODE componentmode="Hidden" filename="Subpatches\GetMetadata (VVVV).v4p" hiddenwhenlocked="1" id="10" nodename="GetMetadata (VVVV)" systemname="GetMetadata (VVVV)">
<BOUNDS height="100" left="5820" top="1800" type="Node" width="100">
</BOUNDS>
<PIN pinname="Patch" visible="1">
</PIN>
<BOUNDS height="3465" left="14520" top="5520" type="Window" width="4680">
</BOUNDS>
<PIN pinname="Author" visible="1">
</PIN>
<PIN pinname="Description" visible="1">
</PIN>
<PIN pinname="Tags" visible="1">
</PIN>
</NODE>
<NODE componentmode="Hidden" hiddenwhenlocked="1" id="8" nodename="PatchAlias (VVVV)" systemname="PatchAlias (VVVV)">
<BOUNDS height="100" left="5820" top="1350" type="Node" width="100">
</BOUNDS>
<PIN pinname="Patch" visible="1">
</PIN>
</NODE>
<LINK dstnodeid="10" dstpinname="Patch" hiddenwhenlocked="1" srcnodeid="8" srcpinname="Patch">
</LINK>
<LINK dstnodeid="6" dstpinname="Input String" hiddenwhenlocked="1" linkstyle="VHV" srcnodeid="10" srcpinname="Description">
<LINKPOINT x="6445" y="2205">
</LINKPOINT>
<LINKPOINT x="245" y="2355">
</LINKPOINT>
</LINK>
<NODE componentmode="InABox" id="11" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="225" top="2640" type="Node" width="1380">
</BOUNDS>
<BOUNDS height="540" left="225" top="2640" type="Box" width="5520">
</BOUNDS>
<PIN encoded="0" pinname="Input String" visible="1">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Size" slicecount="1" values="12">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="Tags">
</PIN>
</NODE>
<LINK dstnodeid="11" dstpinname="Input String" hiddenwhenlocked="1" linkstyle="VHV" srcnodeid="10" srcpinname="Tags">
<LINKPOINT x="7015" y="2293">
</LINKPOINT>
<LINKPOINT x="275" y="2448">
</LINKPOINT>
</LINK>
<LINK dstnodeid="5" dstpinname="Input String" hiddenwhenlocked="1" srcnodeid="10" srcpinname="Author">
</LINK>
<NODE componentmode="InABox" id="12" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="2790" top="3660" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="360" left="2790" top="3660" type="Box" width="2025">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[0 -The Inspektor]&cr;&lf;Let's create a set of sliders.&cr;&lf;<br />&cr;&lf;&cr;&lf;Create a new <node>IOBox</node> with <click2/><rmb/>.&cr;&lf;<br />&cr;&lf;&cr;&lf;There are 2 pins on the IOBox at present:&cr;&lf;<ul>&cr;&lf;<li><pin>Y Input Value</pin></li>&cr;&lf;<li><pin>Y Output Value</pin></li>&cr;&lf;</ul>&cr;&lf;<br />&cr;&lf;&cr;&lf;However, there are many hidden pins on the IOBox that can configure it in all sorts of ways. To see these hidden pins, we need to use the <node>Inspektor</node>.&cr;&lf;<br />&cr;&lf;&cr;&lf;To open the <node>Inspektor</node>:&cr;&lf;<ol>&cr;&lf;<li>Select the <node>IOBox</node> with a single <click/><lmb/> (it should now be highlighted. To deselect an object, <click/><lmb/> in an empty area of the patch).</li>&cr;&lf;<li>Press <key>Ctrl</key>+<key>I</key>. This should bring up the <node>Inspektor</node> window.&cr;&lf;</ol>&cr;&lf;&cr;&lf;The <node>Inspektor</node> will show you hidden properties about whatever you have selected.&cr;&lf;<br />&cr;&lf;&cr;&lf;The pins shown in the <node>Inspektor</node> are split into 3 areas:&cr;&lf;<ul>&cr;&lf;<li><b>Config pins</b> - These pins can only be edited using the Inspektor.</li>&cr;&lf;<li><b>Input pins</b></li>&cr;&lf;<li><b>Output pins</b></li>&cr;&lf;</ul>|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE systemname="IOBox (Value Advanced)" nodename="IOBox (Value Advanced)" componentmode="InABox" id="47">
<BOUNDS type="Node" left="2055" top="4845" width="100" height="100">
</BOUNDS>
<BOUNDS type="Box" left="2055" top="4845" width="3420" height="1185">
</BOUNDS>
<PIN pinname="Columns" slicecount="1" values="4">
</PIN>
<PIN pinname="Minimum" slicecount="1" values="-10000">
</PIN>
<PIN pinname="Maximum" slicecount="1" values="10000">
</PIN>
<PIN pinname="SliceCount Mode" slicecount="1" values="ColsRowsPages">
</PIN>
<PIN pinname="Y Input Value" slicecount="4" values="0,0,0,0">
</PIN>
<PIN pinname="X Input Value" slicecount="4" values="0,0,0,0">
</PIN>
</NODE>
<NODE componentmode="InABox" id="48" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="1995" top="4350" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="1995" top="4350" type="Box" width="3765">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[1 - Configuring a set of sliders I]&cr;&lf;With the <node>Inspektor</node> open, let's change some settings of the <node>IOBox</node>.&cr;&lf;<br />&cr;&lf;&cr;&lf;First let's make our <node>IOBox</node> work with 8 values at once. We do this by setting the following configuration properties:&cr;&lf;&cr;&lf;<ul>&cr;&lf;<li>Set <pin>SliceCount Mode</pin> to 'ColsRowsPages' (remember to use <click/><rmb/> to change variables</li>&cr;&lf;<li>Set <pin>Columns</pin> to '4'</li>&cr;&lf;</ul>&cr;&lf;<br />&cr;&lf;&cr;&lf;Now let's resize the <node>IOBox</node>. To do this move your cursor to the bottom edge of the node on the right hand side, your cursor should change to a resize icon. Now drag out the size of the node.&cr;&lf;<br />&cr;&lf;&cr;&lf;We should have 4 values shown.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE systemname="IOBox (Value Advanced)" nodename="IOBox (Value Advanced)" componentmode="InABox" id="50">
<BOUNDS type="Node" left="2055" top="6945" width="100" height="100">
</BOUNDS>
<BOUNDS type="Box" left="2055" top="6945" width="3420" height="1185">
</BOUNDS>
<PIN pinname="Columns" slicecount="1" values="4">
</PIN>
<PIN pinname="Minimum" slicecount="1" values="-10000">
</PIN>
<PIN pinname="Maximum" slicecount="1" values="10000">
</PIN>
<PIN pinname="SliceCount Mode" slicecount="1" values="ColsRowsPages">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="1">
</PIN>
<PIN pinname="Show Value" slicecount="1" values="0">
</PIN>
<PIN pinname="Show Slider" slicecount="1" values="1">
</PIN>
<PIN pinname="Show Connections" slicecount="1" values="0">
</PIN>
<PIN pinname="Slider Behavior" slicecount="1" values="Slider">
</PIN>
<PIN pinname="Y Output Value" visible="1">
</PIN>
<PIN pinname="X Input Value" slicecount="4" values="0,0,0,1">
</PIN>
<PIN pinname="Y Input Value" slicecount="4" values="0,0,0,1">
</PIN>
</NODE>
<NODE componentmode="InABox" id="49" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="1965" top="6450" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="330" left="1965" top="6450" type="Box" width="3765">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[2 - Configuring a set of sliders II]&cr;&lf;Now let's change the visual style. <br />&cr;&lf;&cr;&lf;<ul>&cr;&lf;<li>Turn <b>on</b> <pin>Show Grid</pin></li>&cr;&lf;<li>Turn <b>off</b> <pin>Show Value</pin></li>&cr;&lf;<li>Turn <b>on</b> <pin>Show Slider</pin></li>&cr;&lf;<li>Set <pin>Slider Behaviour</pin> to <b>Slider</b></li&cr;&lf;</ul>&cr;&lf;&cr;&lf;Let's visualise the output of this. <click2/><rmb/> and select <b>4D Vector</b>. Put this beneath your sliders and connect the <pin>Y Value Output</pin> of your sliders to the <pin>Y Value Input</pin> of your 4D Vector <node>IOBox</node>.&cr;&lf;<br />&cr;&lf;&cr;&lf;Now try interacting with your sliders by dragging the right mouse button <hold/><rmb/> up and down on each slider.&cr;&lf;<br />&cr;&lf;&cr;&lf;We find that the sliders can move between -1000 and 1000. We can change this range using the <pin>Minimum</pin> and <pin>Maximum</pin> Values in the <node>Inspektor</node>.|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE systemname="IOBox (Value Advanced)" nodename="IOBox (Value Advanced)" componentmode="InABox" id="52">
<BOUNDS type="Node" left="2040" top="8445" width="100" height="100">
</BOUNDS>
<BOUNDS type="Box" left="2040" top="8445" width="795" height="960">
</BOUNDS>
<PIN pinname="Rows" slicecount="1" values="4">
</PIN>
<PIN pinname="Y Input Value" visible="1">
</PIN>
<PIN pinname="Vector Size" slicecount="1" values="4">
</PIN>
<PIN pinname="Default" slicecount="1" values="|0, 0, 0, 1|" encoded="0">
</PIN>
</NODE>
<LINK srcnodeid="50" srcpinname="Y Output Value" dstnodeid="52" dstpinname="Y Input Value">
</LINK>
<NODE componentmode="InABox" id="61" nodename="IOBox (String)" systemname="IOBox (String)">
<BOUNDS height="270" left="2610" top="10050" type="Node" width="2070">
</BOUNDS>
<BOUNDS height="345" left="2610" top="10050" type="Box" width="2085">
</BOUNDS>
<PIN encoded="0" pinname="Input String" slicecount="1" visible="0" values="|[3 - Help patches]&cr;&lf;VVVV has a built in help mechanism for most common nodes. To open a <concept>Help Patch</concept>, select a node <click/><lmb/>(e.g. an <node>IOBox</node>) and press <key>F1</key>.&cr;&lf;<br />&cr;&lf;&cr;&lf;The <node>IOBox</node> help patch displays a thorough set of information about how that node works.&cr;&lf;<br />&cr;&lf;&cr;&lf;Let's try another one. First create a <node>Homography (Transform 2d)</node> node. Then select it <click/><lmb/> and press <key>F1</key>.&cr;&lf;<br />&cr;&lf;&cr;&lf;Try interacting with the top right <node>IOBox</node>|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
<PIN pinname="Font" slicecount="1" values="|Arial Black|">
</PIN>
<PIN pinname="Size" slicecount="1" values="10">
</PIN>
<PIN encoded="0" pinname="Descriptive Name" slicecount="1" values="||">
</PIN>
</NODE>
<NODE systemname="Homography (Transform 2d)" nodename="Homography (Transform 2d)" componentmode="Hidden" id="62">
<BOUNDS type="Node" left="3120" top="10530" width="100" height="100">
</BOUNDS>
</NODE>
</PATCH>