Developing Crowd Simulation with Nuke

[embed]https://vimeo.com/271252747[/embed] I was tasked with development of crowd simulation during our third year film production, As You Command. The scene that requires a CG crowd takes place in a huge hockey rink with action in the foreground. Director James Cunningham gathered every students and lecturers in the class and shot…

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…

Linux Snippets

I've interested in Linux for a while now but it's only until recently I actually installed Linux to dual boot with my Windows 10. At first I installed Ubuntu because of it's popularity, but on the same day I found out the production programs I work with (Nuke, Maya) doesn't…

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…

TCL/Python Snippets

Get input node name: [python nuke.thisNode().input(0).name()] [python nuke.thisNode().input(1).name()] [value this.input0.name] [value this.input1.name] Set a variable in expression with TCL: [set VARIABLENAME VALUE; return] To use this variable later needs to type it as: $VARIABLENAME Get the last letter/section from node name, separated by "_": nuke.thisNode().name().rsplit("_").__getitem__(2) From the above, can be…