if then else

I created a new gizmo and its work fine. I want my gizmo piped to selected node whenever i call my gizmo for that i given the following statement on my menu.py

def test ():
test = nuke.nodes.test ()
curNode = nuke.selectedNode ()
test.setInput(0,curNode)
(if i not selected any node its gave me a warning.. no node selected)

its work fine. But how can assign if then else statement for this. Im not a scripting guy. Help me please.

No Responses to “if then else”

Post a Comment