Detecting if a Node's Input has an Alpha Channel

Written by Paul Hudson on .

The following expressions will check if the first input of a Node has a channel beginning with an "a".  Obviously not 100% foolproof, but should get you started.


TCL Expression:

[string first ".a" [channels [input this 0]]]>-1


Python Expression:

[python "len(\[n for n in nuke.channels(nuke.thisNode().input(0)) if n.find(\".a\") != -1])>0"]



+1 # Jason Bidwell 2012-02-23 08:56
Very useful. Thank you
+1 # Amy Nugent 2012-11-28 19:01
Thanks, that helps me

You have no rights to post comments

We have 3140 guests and 110 members online