ShuffleCopy

From RMIT Visual Effects
Jump to: navigation, search

The ShuffleCopy node moves channels from one place into another. Its interface can be a bit confusing for newbies. The trick is to read along the direction indicated by the arrow in the image below. In this instance the R, G and B channels are being supplied by input number 2 and the alpha is being supplied by input number 1. This is a very common purpose for the ShuffleCopy and, indeed, is the default state of this node.

How to read a ShuffleCopy node.

The code snippet below moves three channels into one image, to produce a cute RGB color circle set. Useful? No. But fun.

Three Radial shapes combined into one image.

Press 'Expand' and select and copy everything below this line, then paste into the Nuke node graph.

set cut_paste_input [stack 0]
version 9.0 v6
Reformat {
inputs 0
format "1920 1080 0 0 1920 1080 1 HD_1080"
name Reformat3
selected true
xpos -1488
ypos -224
}
Radial {
area {752 148 1252 648}
softness 0
name Radial3
selected true
xpos -1488
ypos -192
}
Reformat {
inputs 0
format "1920 1080 0 0 1920 1080 1 HD_1080"
name Reformat2
selected true
xpos -1476
ypos -345
}
Radial {
area {900 388 1400 888}
softness 0
name Radial2
selected true
xpos -1476
ypos -313
}
push $cut_paste_input
Reformat {
format "1920 1080 0 0 1920 1080 1 HD_1080"
name Reformat1
selected true
xpos -1293
ypos -421
}
Radial {
area {572 386 1072 886}
softness 0
name Radial1
selected true
xpos -1293
ypos -389
}
ShuffleCopy {
inputs 2
green green
blue black
name ShuffleCopy1
label "Moves the R of input '2' into the Red channel\nMoves the G of input '1' into the Green channel"
note_font_color 0xdcdcdcff
selected true
xpos -1293
ypos -322
}
ShuffleCopy {
inputs 2
blue blue
name ShuffleCopy2
label "Preserves the R and G of input 2\nMoves the B of input '1' into the Blue channel"
note_font_color 0xdcdcdcff
selected true
xpos -1293
ypos -201
}
Write {
name Write1
selected true
xpos -1293
ypos -133
}