Created
November 18, 2012 16:37
-
-
Save FJuri/4106125 to your computer and use it in GitHub Desktop.
PYTHON: call Nuke externally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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