|
Execute a Pythong script in Terminal OSX -
May 30th, 2009, 03:18 AM
Hey Guys,
I'm trying to do a pipeline thing with nuke. I wanna execute a python script in the terminal in order to open up a script and change the write nodes ... however it seems that nuke try to execute the python script as a render ...
my command looks like this :
nuke -x nuke_fileout.py
and I get this error
Copyright (C) 2008 The Foundry Visionmongers Ltd. All Rights Reserved.
There are no Write operators in this script
and my python script look like this :
import nuke
nuke.scriptOpen ("/Users/jonasdrehn/Desktop/PipelineTest/database/default.nk" )
a = nuke.toNode('WriteMain')
b = nuke.toNode('PlaypackProxy')
a['file'].setValue("testfile.jpg")
b['file'].setValue("testfile_pbproxy.jpg")
|