On 10/11/12 at 1:51 AM, (NotDaBod) wrote:
Is this how you would use a black and white image as a mask?
ah, if you want to use the external mask input you'll have to
use "maskChannelMask", like:
for node in nuke.selectedNodes():
node["maskChannelMask"].setValue("rgba.blue")
if you just use "mask", it will use the blue channel of the main
pipe as the mask. try with the following, for the main pipe
(your original code):
set cut_paste_input [stack 0]
ColorWheel {
inputs 0
gamma 0.45
name ColorWheel1
selected true
xpos -216
ypos -192
}
Multiply {
value 0.025
maskChannelMask rgba.blue
name Multiply1
selected true
xpos -216
ypos -91
}
and with an external mask (new code above)
set cut_paste_input [stack 0]
ColorWheel {
inputs 0
gamma 0.45
name ColorWheel2
selected true
xpos 7
ypos -111
}
ColorBars {
inputs 0
name ColorBars2
selected true
xpos 138
ypos -226
}
Multiply {
inputs 1+1
value 0.025
maskChannelMask none
name Multiply2
selected true
xpos 138
ypos -92
}
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python