Skip to content

Instantly share code, notes, and snippets.

@FJuri
Created November 18, 2012 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FJuri/4106125 to your computer and use it in GitHub Desktop.
Save FJuri/4106125 to your computer and use it in GitHub Desktop.
PYTHON: call Nuke externally
import subprocess
import nukeExternalControl.client
print "Starting Nuke Server"
np = subprocess.Popen(["C:\\Path\\To\\Nuke\\Nuke6.3.exe", '-t', "C:\\Path\\To\\PythonPath\\nukeExternalControl\\server.py"])
conn = nukeExternalControl.client.NukeConnection()
nuke = conn.nuke
print "execute commands"
nuke.root().knob('first_frame').setValue(1)
nuke.root().knob('last_frame').setValue(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment