Hi Howard.
I'm not sure I understand what you mean. When I make a keymix it has inputs
A, B and mask.

Erwan
On 21 Feb 2014 14:42, "Howard Jones" <[email protected]> wrote:

> A key mix doesn't have a mask input.
> It has an input that is used as a mask but that's not the same thing.
>
> HTH
>
> Howard
>
> On 21 Feb 2014, at 22:24, Erwan Leroy <[email protected]> wrote:
>
> Hi Everyone,
> Ean, just a quick update on your function. After using a part of it for
> about a week, I ran into a small issue today while trying to show the mask
> input of a keymix.
> For some reason that node uses a knob called maskChannel instead of
> maskChannelMask, making your function believe this node had no mask input.
> It was easily fixed by adding a "or" to my if statement.
>
> I'll let you know if I run into another issue.
>
> Erwan
> On 12 Feb 2014 00:56, "Erwan Leroy" <[email protected]> wrote:
>
>> Thanks a lot, that will probably work great.
>> On 12 Feb 2014 00:42, "Ean Carr" <[email protected]> wrote:
>>
>>> Hey Erwan,
>>>
>>> I wrote these functions a few years ago after I posted that to the list:
>>>
>>> https://gist.github.com/anonymous/a802f51391163a2bf0e3
>>>
>>> Just call get_mask_input_index(node). I haven't run into any node which
>>> returns a bad index for the mask, but if you do, let me know. Yeah, I wish
>>> Nuke would give us something like node.maskInput()
>>>
>>> Cheers
>>>
>>>
>>> On Wed, Feb 12, 2014 at 3:08 AM, Erwan Leroy <[email protected]>wrote:
>>>
>>>> Hello everybody,
>>>> I've been playing around with python and nuke for a little while now
>>>> and starting to get more comfortable, but I hit a roadblock today.
>>>>
>>>> I'm trying to find a way to identify the mask input from other inputs.
>>>>
>>>> So far I have that very dirty piece of code that works most of the
>>>> time, but not always:
>>>>
>>>> node = nuke.selectedNode()if node.Class() == 'Merge2':
>>>>     maskInput = 2else:
>>>>     maxInputs = node.maxInputs()
>>>>     if maxInputs > 1:
>>>>         maskInput = maxInputs-1
>>>>     else:
>>>>         maskInput = None
>>>>
>>>>
>>>> Is there any function like node.mask() or something similar?
>>>>
>>>> The closest I found online was this post from 2011: 
>>>> https://www.mail-archive.com/[email protected]/msg00508.html
>>>>
>>>>
>>>> thanks
>>>>
>>>> Erwan
>>>>
>>>>
>>>> _______________________________________________
>>>> Nuke-python mailing list
>>>> [email protected], http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>>
>>> _______________________________________________
>>> Nuke-python mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>
>>>  _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to