SUMMARY
You can then use this in a simple script that points to your footage, runs the function and then saves the script.
# define the location of your footage
# and the frame range stereoSequence='/path/to/stereoFootage.%V.###.ext'
first=1
last=20
# Create the Ocula script
createOculaTree(stereoSequence,first,last)
# save out your script
nuke.scriptSaveAs('/path/to/save/oculaScript.nk', True)
PLEASE NOTE: In order to execute the O_Solver node via Python you need to be using interactive licenses for both Nuke and Ocula.
- If you're running a Nuke terminal session then you'll need to launch it with "-i" in your arguments, e.g. "Nuke15.1 -t -i" or "Nuke14.0 -ti"
- If you are using Nuke as a Python module in an external Python session then you need to set os.environ[ "NUKE_INTERACTIVE" ] = "1" before your "import nuke" command
Please see the Nuke Python Developer Guide for more information on how to use Nuke's Python API.
Keywords: Ocula, python, O_Solver
Keywords: Ocula, python, O_Solver
We're sorry to hear that
Please tell us why
MORE INFORMATION