Guest User

Untitled

a guest
Mar 2nd, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. node = nuke.createNode('NoOp')
  2. node.addKnob(nuke.PyScript_Knob("script","script",'''def printer(string):
  3.   print string
  4. printer("hello123")'''))
  5.  
  6. #Then execute the function
  7. node['script'].execute()
Advertisement
Add Comment
Please, Sign In to add comment