PDA

View Full Version : mask pass question


Halford
04-14-2010, 02:20 PM
Hi everyone,

I have a simple question for you... They gave me here a new mask pass....it contains red,blue,green and white elements....how do I use the whites one without selecting anything from the others colours?

Thanks.

Hal.

ChristopherP
04-14-2010, 02:38 PM
using white doesn't seem like the most intelligent choice ;)

but see if that makes sense in your case...just a quick idea. hope it helps!


chris


set cut_paste_input [stack 0]
version 6.0 v3
push $cut_paste_input
RotoPaint {
toolbar_brush_hardness 0.200000003
toolbar_lifetime_type all
toolbar_source_transform_scale {1 1}
toolbar_source_transform_center {960 540}
curves {AnimTree: "" {
Version: 1.1
Flag: 0
RootNode: 1
Node: {
NodeName: "Root" {
Flag: 512
NodeType: 1
NumOfAttributes: 10
"vis" S 0 1 "opc" S 0 1 "mbo" S 0 1 "mb" S 0 1 "mbs" S 0 0.5 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0
}
NumOfChildren: 3
Node: {
NodeName: "Shape3" {
Flag: 576
NodeType: 3
CurveGroup: "" {
Transform: 0 0 S 1 1001 0 S 1 1001 0 S 1 1001 0 S 1 1001 1 S 1 1001 1 S 1 1001 0 S 1 1001 752.444 S 1 1001 304
Flag: 0
NumOfCubicCurves: 2
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 27
0 S 1 1001 4 S 1 1001 0 0 0 S 1 1001 800 S 1 1001 160 0 0 S 1 1001 -4 S 1 1001 0 0 0 S 1 1001 20 S 1 1001 4 0 0 S 1 1001 512 S 1 1001 144 0 0 S 1 1001 -20 S 1 1001 -4 0 0 S 1 1001 8 S 1 1001 -12 0 0 S 1 1001 336 S 1 1001 208 0 0 S 1 1001 -8 S 1 1001 12 0 0 S 1 1001 -16 S 1 1001 -12 0 0 S 1 1001 304 S 1 1001 360 0 0 S 1 1001 16 S 1 1001 12 0 0 S 1 1001 -24 S 1 1001 -4 0 0 S 1 1001 556 S 1 1001 540 0 0 S 1 1001 24 S 1 1001 4 0 0 S 1 1001 -12 S 1 1001 4 0 0 S 1 1001 932 S 1 1001 592 0 0 S 1 1001 12 S 1 1001 -4 0 0 S 1 1001 -4 S 1 1001 8 0 0 S 1 1001 1216 S 1 1001 444 0 0 S 1 1001 4 S 1 1001 -8 0 0 S 1 1001 36 S 1 1001 4 0 0 S 1 1001 1196 S 1 1001 160 0 0 S 1 1001 -36 S 1 1001 -4 0 0 S 1 1001 16 S 1 1001 0 0 0 S 1 1001 920 S 1 1001 128 0 0 S 1 1001 -16 S 1 1001 0 0
}
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 27
0 S 1 1001 4 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -4 S 1 1001 0 0 0 S 1 1001 20 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -20 S 1 1001 -4 0 0 S 1 1001 8 S 1 1001 -12 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -8 S 1 1001 12 0 0 S 1 1001 -16 S 1 1001 -12 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 16 S 1 1001 12 0 0 S 1 1001 -24 S 1 1001 -4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 24 S 1 1001 4 0 0 S 1 1001 -12 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 12 S 1 1001 -4 0 0 S 1 1001 -4 S 1 1001 8 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 4 S 1 1001 -8 0 0 S 1 1001 36 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -36 S 1 1001 -4 0 0 S 1 1001 16 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -16 S 1 1001 0 0
}
NumOfAttributes: 27
"vis" S 0 1 "r" S 0 0 "g" S 0 0 "b" S 0 1 "a" S 0 1 "ro" S 0 0 "go" S 0 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 7 "inv" S 0 0 "mbo" S 0 0 "mb" S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 "nv" S 0 1 "view1" S 0 1 "ltn" S 0 1001 "ltm" S 0 1001 "ltt" S 0 0
}
}
NumOfChildren: 0
}
Node: {
NodeName: "Shape2" {
Flag: 512
NodeType: 3
CurveGroup: "" {
Transform: 0 0 S 1 1001 0 S 1 1001 0 S 1 1001 0 S 1 1001 1 S 1 1001 1 S 1 1001 0 S 1 1001 966.5 S 1 1001 640.5
Flag: 0
NumOfCubicCurves: 2
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 24
0 S 1 1001 -4 S 1 1001 0 0 0 S 1 1001 1084 S 1 1001 796 0 0 S 1 1001 4 S 1 1001 0 0 0 S 1 1001 12 S 1 1001 0 0 0 S 1 1001 796 S 1 1001 796 0 0 S 1 1001 -12 S 1 1001 0 0 0 S 1 1001 4 S 1 1001 4 0 0 S 1 1001 588 S 1 1001 696 0 0 S 1 1001 -4 S 1 1001 -4 0 0 S 1 1001 -4 S 1 1001 4 0 0 S 1 1001 668 S 1 1001 540 0 0 S 1 1001 4 S 1 1001 -4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 856 S 1 1001 408 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 1184 S 1 1001 464 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 1376 S 1 1001 660 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 20 S 1 1001 0 0 0 S 1 1001 1180 S 1 1001 764 0 0 S 1 1001 -20 S 1 1001 0 0
}
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 24
0 S 1 1001 -4 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 4 S 1 1001 0 0 0 S 1 1001 12 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -12 S 1 1001 0 0 0 S 1 1001 4 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -4 S 1 1001 -4 0 0 S 1 1001 -4 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 4 S 1 1001 -4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 20 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -20 S 1 1001 0 0
}
NumOfAttributes: 27
"vis" S 0 1 "r" S 0 0 "g" S 0 1 "b" S 0 0 "a" S 0 1 "ro" S 0 0 "go" S 0 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 7 "inv" S 0 0 "mbo" S 0 0 "mb" S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 "nv" S 0 1 "view1" S 0 1 "ltn" S 0 1001 "ltm" S 0 1001 "ltt" S 0 0
}
}
NumOfChildren: 0
}
Node: {
NodeName: "Shape1" {
Flag: 512
NodeType: 3
CurveGroup: "" {
Transform: 0 0 S 1 1001 0 S 1 1001 0 S 1 1001 0 S 1 1001 1 S 1 1001 1 S 1 1001 0 S 1 1001 570 S 1 1001 645.333
Flag: 0
NumOfCubicCurves: 2
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 18
0 S 1 1001 4 S 1 1001 4 0 0 S 1 1001 504 S 1 1001 836 0 0 S 1 1001 -4 S 1 1001 -4 0 0 S 1 1001 16 S 1 1001 12 0 0 S 1 1001 296 S 1 1001 656 0 0 S 1 1001 -16 S 1 1001 -12 0 0 S 1 1001 -8 S 1 1001 0 0 0 S 1 1001 460 S 1 1001 400 0 0 S 1 1001 8 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 728 S 1 1001 464 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 36 S 1 1001 -12 0 0 S 1 1001 856 S 1 1001 696 0 0 S 1 1001 -36 S 1 1001 12 0 0 S 1 1001 20 S 1 1001 -12 0 0 S 1 1001 576 S 1 1001 820 0 0 S 1 1001 -20 S 1 1001 12 0
}
CubicCurve: "" {
Type: 0 Flag: 8192 Dim: 2
NumOfPoints: 18
0 S 1 1001 4 S 1 1001 4 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -4 S 1 1001 -4 0 0 S 1 1001 16 S 1 1001 12 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -16 S 1 1001 -12 0 0 S 1 1001 -8 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 8 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 -8 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 0 S 1 1001 8 0 0 S 1 1001 36 S 1 1001 -12 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -36 S 1 1001 12 0 0 S 1 1001 20 S 1 1001 -12 0 0 S 1 1001 0 S 1 1001 0 0 0 S 1 1001 -20 S 1 1001 12 0
}
NumOfAttributes: 27
"vis" S 0 1 "r" S 0 1 "g" S 0 0 "b" S 0 0 "a" S 0 1 "ro" S 0 0 "go" S 0 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 0 "inv" S 0 0 "mbo" S 0 0 "mb" S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 "nv" S 0 1 "view1" S 0 1 "ltn" S 0 1001 "ltm" S 0 1001 "ltt" S 0 0
}
}
NumOfChildren: 0
}
}
}
}
color {0 0 1 1}
blending_mode plus
lifetime_type "all frames"
lifetime_start 1001
lifetime_end 1001
translate {{curve x1001 0} {curve x1001 0}}
rotate {{curve x1001 0}}
scale {{curve x1001 1}}
skew {{curve x1001 0}}
center {{curve x1001 752.444458} {curve x1001 304}}
motionblur_shutter_offset_type centred
source_transform_center {960 540}
name RotoPaint1
selected true
xpos -23
ypos -122
}
set N2200a110 [stack 0]
Shuffle {
green red
blue red
alpha red
name Shuffle1
selected true
xpos -164
ypos -26
}
push $N2200a110
Shuffle {
red green
blue green
alpha green
name Shuffle2
selected true
xpos -23
ypos -28
}
Merge2 {
inputs 2
operation in
name Merge1
selected true
xpos -23
ypos 99
}
push $N2200a110
Shuffle {
red blue
green blue
alpha blue
name Shuffle3
selected true
xpos 109
ypos -24
}
Merge2 {
inputs 2
operation in
name Merge2
selected true
xpos 109
ypos 99
}

Halford
04-14-2010, 05:32 PM
Not my idea the white, but your script works like a charm! Thanks Christopher.

Hal.

ChristopherP
04-14-2010, 05:51 PM
wasn't inferring that you were responsible...more a hint to the render-guys ;)

and glad that it's working!


c.

kag122
04-15-2010, 03:18 PM
Are you sure the white isn't just a visual combination of the three colours added together?

What happens if you just shuffle out to R, G and B? seperately?

MasonDoran
04-19-2010, 08:31 AM
white is 1 1 1 -you cant shuffle out anything. White is simply redundant. You would have to build the nodes to subtract the R, G,B from the white.



set cut_paste_input [stack 0]
version 5.2300
push $cut_paste_input
Radial {
output {rgba.red rgba.green rgba.blue -rgba.alpha}
area {98 720 790 1498}
color {1 0 0 1}
name Radial1
selected true
xpos -366
ypos -277
}
Radial {
output {rgba.red rgba.green rgba.blue -rgba.alpha}
area {1290 740 1982 1518}
color {0 0 1 1}
name Radial2
selected true
xpos -366
ypos -251
}
Radial {
output {rgba.red rgba.green rgba.blue -rgba.alpha}
area {682 24 1374 802}
color {0 1 0 1}
name Radial3
selected true
xpos -366
ypos -225
}
Radial {
output {rgba.red rgba.green rgba.blue -rgba.alpha}
area {510 202 1604 1452}
softness 0.17
name Radial4
selected true
xpos -366
ypos -199
}
Radial {
output {rgba.red rgba.green rgba.blue -rgba.alpha}
area {718 454 1410 1232}
softness 0.216
color {1 0 0 1}
name Radial5
selected true
xpos -366
ypos -173
}
set N677b4f0 [stack 0]
Dot {
name Dot3
selected true
xpos -223
ypos -169
}
set N5c7f360 [stack 0]
Dot {
name Dot2
selected true
xpos -98
ypos -169
}
set N5c7f5b0 [stack 0]
Dot {
name Dot1
selected true
xpos 42
ypos -169
}
Shuffle {
red blue
green blue
alpha black
out rgb
name Blue
selected true
xpos 8
ypos -73
}
set N6575f40 [stack 0]
push $N5c7f5b0
Shuffle {
red green
blue green
alpha black
out rgb
name Green
selected true
xpos -132
ypos -68
}
set N677cc10 [stack 0]
Merge2 {
inputs 2
operation minus
name Min
selected true
xpos 8
ypos -10
}
push $N5c7f360
Shuffle {
green red
blue red
alpha black
out rgb
name Red
selected true
xpos -257
ypos -71
}
set N677abb0 [stack 0]
push $N677cc10
Merge2 {
inputs 2
operation minus
name Merge1
selected true
xpos -257
ypos -15
}
push $N677cc10
push $N6575f40
Merge2 {
inputs 2
operation minus
name Merge2
selected true
xpos -132
ypos -16
}
push $N677b4f0
Shuffle {
red green
blue green
alpha black
out rgb
name white
selected true
xpos -366
ypos -69
}
push $N677abb0
Merge2 {
inputs 2
operation min
Achannels rgb
Bchannels rgb
name Merge3
selected true
xpos -366
ypos -13
}

CGTalk Moderation
04-19-2010, 08:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.