Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
FORUMS: listlist (w/ descriptions)archivetagssearchhall of famerecent posts

mask layers - reverse simple?

Cow Forums : Nuke

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
mask layers - reverse simple?
by Christopher Blake on Oct 17, 2009 at 8:09:24 pm

I looked at the other posts - but still have a question which hopefully is a quick answer. I made 3 masks - they each effect one part of the image.

Suppose the mask for the blue tint needs to be reversed to effect the outside of its mask rather than inside. But this effects the whole image including the red and green masked parts.

So I did a separate reverse and Over of the 2 masks and then an In and an over - and it works (see photo). But it seems like there should be an easier way. Any help would be appreciated!



code below:

#! /Applications/Nuke5.2v1/Nuke5.2v1.app/Contents/MacOS/Nuke5.2v1 -nx
version 5.2100
define_window_layout_xml {

































}
Root {
inputs 0
name /Nuke/Tutorials/CompBasics/reverse_masking.nk
last_frame 28
lock_range true
format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"
proxy_type scale
proxy_format "1024 778 0 0 1024 778 1 1K_Super_35(full-ap)"
}
Bezier {
inputs 0
output {-rgba.red -rgba.green -rgba.blue rgba.alpha}
maskChannelInput -mask.a
inject false
points {{
{738 394 24.3 2.59 24.3}
{714 488 24.3 1.28 24.3}
{818 660 35.6 0.39 35.6}
{936 580 35.6 -1.44 35.6}
{852 404 28.6 -2.39 28.6}
}}
shape {{curve i L x1 0}}
center {720 576}
name Bezier1
xpos -443
ypos -160
}
set N19b3e670 [stack 0]
Bezier {
inputs 0
output {-rgba.red -rgba.green -rgba.blue rgba.alpha}
maskChannelMask none
inject true
points {{
{-55 10 128.1 1.68 128.1}
{385 565 149.6 -0.1 149.6}
{455 -40 128.1 -2.26 128.1}
}}
shape {{curve i L x1 0}}
center {720 576}
name Bezier2
xpos -444
ypos -82
}
set N1e4c9d10 [stack 0]
Merge2 {
inputs 2
maskChannelInput -mask.a
name Merge2
xpos -265
ypos -165
}
set N1a43c570 [stack 0]
Viewer {
channels alpha
name Viewer3
xpos -265
ypos -244
}
Bezier {
inputs 0
output {-rgba.red -rgba.green -rgba.blue rgba.alpha}
replace true
maskChannelMask -mask.a
inject true
points {{
{300 1030 45.8 -3 45.8}
{240 795 45.8 -0.21 45.8}
{730 940 109.8 1.57 245}
}}
shape {{curve i L x1 0}}
center {720 576}
name Bezier3
xpos -443
ypos -13
}
push $N1e4c9d10
push $N19b3e670
Read {
inputs 0
file /Nuke/Tutorials/CompBasics/engine_rgba/engine.v01.%04d.exr
format "1440 1152 0 0 1440 1152 1 "
last 28
name Read2
xpos -590
ypos -240
}
EXPTool {
inputs 1+1
gang false
red 0.71
name EXPTool_Red
xpos -590
ypos -114
}
EXPTool {
inputs 1+1
gang false
green 1
name EXPTool_Green
xpos -590
ypos -58
}
set N1e46bc40 [stack 0]
EXPTool {
inputs 1+1
gang false
blue 0.65
name EXPTool_Blue1
xpos -590
ypos 27
}
Viewer {
name Viewer1
xpos -590
ypos 103
}
push $N1e46bc40
push $N1a43c570
Merge2 {
inputs 2
operation in
name Merge1
xpos -265
ypos -41
}
Bezier {
inputs 0
output {-rgba.red -rgba.green -rgba.blue rgba.alpha}
replace true
invert true
maskChannelMask -mask.a
inject true
points {{
{300 1030 45.8 -3 45.8}
{240 795 45.8 -0.21 45.8}
{730 940 109.8 1.57 245}
}}
shape {{curve i L x1 0}}
center {720 576}
name Bezier4
xpos 14
ypos -123
}
Read {
inputs 0
file /Nuke/Tutorials/CompBasics/engine_rgba/engine.v01.%04d.exr
format "1440 1152 0 0 1440 1152 1 "
last 28
name Read3
xpos -96
ypos -223
}
EXPTool {
inputs 1+1
gang false
blue 0.65
name EXPTool_Blue2
xpos -112
ypos -65
}
Merge2 {
inputs 2
name Merge3
xpos -158
ypos 15
}
Viewer {
name Viewer2
xpos -166
ypos 78
}


Respond to this post   •   Return to posts index

Re: mask layers - reverse simple?
by Peter O'Connell on Oct 18, 2009 at 2:06:08 am

Hi, here is one way you could do it.




Bezier {
points {{
{228 758 69.4 0.69 69.4}
{704 822 77.3 -0.54 77.3}
{608 528 75.5 -2.45 75.5}
{308 492 69.4 2.6 69.4}
}}
shape {}
center {1024 778}
name Bezier1
selected true
xpos 2560
ypos -1211
}
Bezier {
points {{
{870 1048 73.2 0.23 73.2}
{1076 840 73.2 -1.95 73.2}
{756 764 76.5 2.35 76.5}
}}
shape {}
center {1024 778}
name Bezier2
selected true
xpos 2560
ypos -1166
}
Bezier {
points {{
{1286 1126 68.6 -0.18 68.6}
{1558 852 96.5 -2.4 96.5}
{1084 940 68.6 2.35 68.6}
}}
shape {}
center {1024 778}
name Bezier3
selected true
xpos 2560
ypos -1121
}
ColorBars {
inputs 0
name ColorBars1
selected true
xpos 2356
ypos -1235
}
Grade {
inputs 1+1
multiply 0.121727
invert_mask true
name Grade1
selected true
xpos 2356
ypos -1051
}


Rogue Keyframe
Feature Film Compositing

Respond to this post   •   Return to posts index

Re: mask layers - reverse simple?
by Christopher Blake on Oct 20, 2009 at 3:24:14 am

Thanks Peter.


Chris

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]