Nuke EnumerationPulldown

I was trying to create a simple panel with a dropdown menu, and had some trouble with nuke panel.addEnumerationPulldown. Here's the code I was typing: opts = ('on', 'from auto-localize path', 'off') p = nuke.Panel('Change read localization') p.addEnumerationPulldown('Set localization policy', opts) I expected the panel to give me a dropdown…

Write node auto versioning

n = nuke.thisNode() oValue = n['file'].evaluate() if os.path.isfile(oValue): (prefix, v) = nukescripts.version_get(oValue, 'v') v = int(v) n['file'].setValue(nukescripts.version_set(n['file'].value(), prefix, v, v + 1)) A few lines of python code I wrote to put in the beforeRender knob in Write node Python tab for auto versioning. That is if the file name…

Nuke TCL/Python Snippets

Helpful documentation Nuke Python Developer's GuideNuke Python APIKnob TypesSome Flags TCL: Get input node name: [value this.input0.name] [python nuke.thisNode().input(0).name()] Set a variable in expression with TCL: [set VARIABLENAME VALUE; return] To use this variable later needs to type it as: $VARIABLENAME TCL String Operation that returns the 5th character from…

Terminator Toothbrush Ad

[embed]https://vimeo.com/151868511[/embed] This is the last school project during my first year in Media Design School, the task is to create a TV ad entirely in 3D according to the provided storyboard in 2 weeks. The entire process of making this video is done by myself, with feedback from lecturers and…