Thanks Frank, that’s a much cleaner idea indeed!
-Nathan
From: Frank Rueter
Sent: Tuesday, August 28, 2012 2:34 PM
To: [email protected]
Subject: Re: [Nuke-users] Set merge node mask channel inside group
I always use a AddChannels node and set it to whatever channel you want to use
as a mask. This node only adds the channel if it doens't already exist,
therefore avoiding the error when nothing is connected upstream and not getting
in the way otherwise. No expressions required:
set cut_paste_input [stack 0]
version 7.0 v1b24
push $cut_paste_input
Group {
name Group1
selected true
xpos 140
ypos -92
}
Input {
inputs 0
name Mask
label "\[value number]"
xpos 160
ypos -181
number 2
}
AddChannels {
channels alpha
name AddChannels1
selected true
xpos 20
ypos -188
}
Input {
inputs 0
name A
label "\[value number]"
xpos -135
ypos -291
}
Input {
inputs 0
name B
label "\[value number]"
xpos 7
ypos -290
number 1
}
Merge2 {
inputs 2+1
bbox B
name Merge1
xpos -135
ypos -177
}
Output {
name Output1
xpos -135
ypos -91
}
end_group
On 29/08/12 12:42 AM, Lukasz Omasta wrote:
Hi,
Is it possible to change the state of a merge node mask input that is inside
a group/gizmo?
If I add an input node to merge mask input inside of group I get an error
that non-existent channel is used for mask.
For now I have a switch node with ![exists parent.input], but is there a more
elegant solution to this problem?
Here is the group I now use
Group {
inputs 3
}
Input {
inputs 0
name Mask
label "\[value number]"
xpos 160
ypos -181
number 2
}
Switch {
which {{"!\[exists parent.input2]" i}}
name Switch1
selected true
xpos 13
ypos -176
}
Input {
inputs 0
name A
label "\[value number]"
xpos -135
ypos -291
}
Input {
inputs 0
name B
label "\[value number]"
xpos 7
ypos -290
number 1
}
Merge2 {
inputs 2+1
operation over
bbox B
name Merge1
xpos -135
ypos -176
}
Output {
name Output1
xpos -135
ypos -91
}
end_group
Thanks for any help
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users