
1
00:00:00,467 –> 00:00:02,733
Let’s examine the switch TOP.
2
00:00:02,733 –> 00:00:13,667
The switch TOP is a simple
operator, but it can help you
understand concepts that are
essential to the Touch Designer
2D workflow.
3
00:00:13,667 –> 00:00:24,200
In this network, the swith TOP
has 3 inputs, and I’m using a
slider to change the index
parameter of the switch TOP.
4
00:00:24,200 –> 00:00:30,100
By default the slider outputs of
floating point range of 0 to 1.
5
00:00:30,100 –> 00:00:35,567
We use a math CHOP to re-range
the values from 0 to 2.
6
00:00:35,567 –> 00:00:46,967
The TOP named “moviein1” is
index 0, “moviein2” is index 1,
“moviein3” is index 2.
7
00:00:46,967 –> 00:00:48,667
—
8
00:00:48,667 –> 00:00:54,467
We’ll use a Python expression to
reference the re-ranged slider
values.
9
00:00:54,467 –> 00:00:55,800
—
10
00:00:55,800 –> 00:01:06,800
We click the “viewer active”
button on the null CHOP, then
drag the channel name to the
index parameter of the switch
TOP.
11
00:01:06,800 –> 00:01:10,833
We could also type the Python
expression by hand.
12
00:01:10,833 –> 00:01:14,967
Lets look at the “Blend between
inputs” parameter.
13
00:01:14,967 –> 00:01:21,633
Without blending, the switch TOP
changes between inputs in
discreet steps.
14
00:01:21,633 –> 00:01:31,400
Its important to realize that in
some situations, blending can
increase operational overhead,
and slow down Touch Designer.
15
00:01:31,400 –> 00:01:42,667
I’ll turn blending back on, and
we’ll examine how the switch TOP
deals with discrepancies in
image sizes.
16
00:01:42,667 –> 00:01:49,733
We can middle mouse click on any
operator in Touch Designer to
display an information popup.
17
00:01:49,733 –> 00:02:04,033
The image size of “moviein1” is
800 by 450, “moviein2” is 512 by
512, and “moviein3” is 1600 by
900.
18
00:02:04,033 –> 00:02:08,767
I’ll change to switch TOP back
to its default settings.
19
00:02:08,767 –> 00:02:18,167
Under the common tab, we have
two important parameters, the
output resolution and the output
aspect.
20
00:02:18,167 –> 00:02:19,500
—
21
00:02:19,500 –> 00:02:31,200
As I switch between inputs, we
see the switch TOP changes its
resolution and aspect to match
the incoming operator.
22
00:02:31,200 –> 00:02:46,867
If I enable blending, we see
that even though there is a
smooth transition between the
input images, the resolution and
aspect of the switch TOP still
jumps in discrete steps.
23
00:02:46,867 –> 00:02:55,167
In cases where all the input
images are the same size, this
is obviously not a problem.
24
00:02:55,167 –> 00:02:56,967
—
25
00:02:56,967 –> 00:03:04,633
We can override this behavior by
adjusting the output resolution
and aspect parameters.
26
00:03:04,633 –> 00:03:08,333
I’ll change the resolution to a
custom size.
27
00:03:08,333 –> 00:03:14,800
We can choose between some
standard options, or create any
resolution we like.
28
00:03:14,800 –> 00:03:16,033
—
29
00:03:16,033 –> 00:03:22,100
Now, I change the “Output
Aspect” parameter to
“Resolution”.
30
00:03:22,100 –> 00:03:26,867
This matches the aspect to our
new custom resolution
31
00:03:26,867 –> 00:03:28,700
—
32
00:03:28,700 –> 00:03:36,067
Now we can switch between inputs
of varying sizes without jumps
in resolution.
33
00:03:36,067 –> 00:03:38,067
—