- Debugging python code IN nuke with Eclipse
- Documents:
http://www.thefoundry.co.uk/products/nuke-product-family/nuke/developers/
http://www.thefoundry.co.uk/products/nuke-product-family/nuke-editions/
- Documents Digest
- NUKE initialization scripts are run in reverse order of the NUKE plug-in path.
- init.py, menu.py
- nuke.env [“key”], (key: “PluginExtension”, “NukeVersionMajor”, “NukeVersionMinor”, “NukeVersionRelease”, “NukeVersionPhase”,“NukeVersionPhaseNumber”, “NukeVersionDate”, “NukeVersionString”, “threads”, “numCPUs”, “gui”, “ExecutablePath”, “ple”, “WIN32”, “MACOS”, nuke.env[“LINUX”, “64bit”.)
- Listing a Node’s Controls:
for i in range (b.getNumKnobs()): # Knobs is similar to the parameter entry in Arnold, I guess.
print b.knob (i).name()
- franges.compact()
- frame numbers in file names can be indicated using hashes (#)
- Overriding the Creation of a Particular Node
- Accessing Node Metadata:
nuke.toNode("Read1").metadata("key") # metadata is similar to the node entry in Arnold, I guess
- Nuke as a Python Module
#gradeShots.py
import nuke
shot = sys.argv[0]
....
nuke.execute( w, 1, 1 )
Which you would then run like: <Nuke8.0-install-path>/python.exe gradeShots.py shot-90123-a.exr
- iop: image operation