Skip to content

Instantly share code, notes, and snippets.

@FJuri
FJuri / gist:4106125
Created November 18, 2012 16:37
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)