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

mask layers - reverse simple?

Cow Forums : Nuke
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire 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   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]