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