Useful Python Scripts For Nuke

I love working in Nuke, but sometimes there are parts of it that I wish could be optimised for a quicker workflow. These are some of the python scripts that I use in order to speed up my working.I did not write any of these, and the download links direct to the original creator.

 

TrackToRoto

I love this script for it’s simplicity. It creates a roto node with the information from the tracker baked in, removing the need to manually drag the tracking info to your roto. I know this doesn’t take long, but I find it tedious, and why not automate it if you can! Simply select the tracker you wish to use, push your hotkey (I use ‘O’) and it’s done. In Nuke 7, The Foundry introduced the ability to bake out a Transform node from a tracker, which you could pipe a roto through, but I prefer to have it all baked in so you don’t have to worry about accidentally deleting or loosing the Transform.

Download it here.

 

LockViewer

This is to save me from my own stupidity more than anything, and I find it useful on larger comps. It gives you the ability to lock your viewer to any node. On larger comps, I like to lock my ‘1’ view to the end of my comp, and then go into different parts of my script. I usually end up accidentally changing my ‘1’ view to something else, and then have to go back to the end of my comp and reset it. This allows me to always have ‘1’ as the end of my tree, and can then quickly compare it with different views. Just a little thing that allows me to work a little quicker and always know what each view will show me.

Download it here.

 

World Switch

This is a really nice way of speeding up your heavy comps. It links to the computationally intensive nodes (2D/3D motion blur, Denoise, DOF etc.) and then allows you to turn them all off/on, without having to do it one by one. You can also assign a hotkey, I use shift+z, so you don’t have to find it in your DAG.

Download it here.

 

SetThisFrame

Again this is a small optimisation to the workflow, but I find it really useful. It adds a tab to the Framehold node, allowing you set the framehold to the current frame. It just means you don’t have to look at your timeline to see what frame you’re on and manually enter it. A small, but useful improvement.

Download it here.

 

AutoLife

This adds a tab to your roto and rotopaint nodes to set the life of the shapes/strokes to the first and last keyframes. Very useful when you’re doing roto and want to turn off splines. I think this functionality should be already be built into Nuke, but it’s not and this script solves the problem well.

Download it here.

 

 

 

Share - Tweet about this on TwitterShare on FacebookShare on LinkedInEmail to someone