Lil’ Python Scripts

Awesomeness

Here is an ever expanding collection of small yet useful Python scripts for Nuke:

Label for the DeepWrite Node (callback – put in init.py)

Scale Transforms by 20%

Current frame on Frame Hold creation
Written by Frank Rueter from Nukepedia – add to menu.py

Auto Create Directory
Written by Julien Chandelle from Nukepedia – add to menu.py

Get Node Tile Colour

Convert Hex colours to Nuke script values
Sites like http://paletton.com/ have a great online picker tool

PostageStamp tool 3
Same as the other one but detects anything named deNoise and changes the colour.

GPU and Render setting dual state
A is the number in GPU version of Nuke and B is for Render only Nuke.

Time Offset value in Label (okay, it’s TCL)

Disable ‘Bookmark’ in all Backdrop Nodes

Relative to Absolute file path converter

Postage stamp renamer

Set Label in Tracker to current Transform Type (add to init.py)

Delete everything except Read Nodes

Controls for enabling/disabling RSMB nodes in GUI and render

Random colour on selected nodes (okay maybe not super useful but you never know!)

Copy a ‘Read’ node path to clipboard from selection and convert it to work in Windows.
Total help from Pete Addington for this one!

Determine Node Class

Copy node label to other nodes(from first selected)

Reload all ‘Read’ nodes

Disable RotoPaint Nodes in GUI

Inherit tile colour from connected node

Set before and after to ‘Black’ on all selected read nodes

Print a list of the details of all selected Read nodes

Delete all disabled nodes

Instance expressions to other nodes based on selection(select linked expression node first)

Set frame range to selected ‘Write’ nodes from 1-170 frames:

Set blur size on all selected ‘Blur’ nodes to match first selected ‘Blur’ Node (and it’s node colour):

Copy colour from ‘Backdrop Node’ to other selected

Set ‘clip to’ to ‘bbox’ for selected ‘Roto’ nodes:

Posted in Scripts and tagged with , , , , , , . RSS 2.0 feed.

Leave a Reply