G_scriptCleaner

Everyone knows how messy a nuke script can get. Use this python script to clean your nuke scripts in a second.

Updated: 19 June 2025

Author: kgaurav

Compatible Nuke versions: 12.0 or later

Compatibility: Windows 64

Everyone knows how messy a nuke script can get. Use this python script to clean your nuke scripts in a second.

Just two simple steps and your file will look much cleaner.

Step 1. Select the nodes you want to keep. It can be any node.
Step 2. Run the code and it will delete all the other nodes which are not dependent on the selected node(s) and save those nodes in a backup file at the same place where your nuke file is placed.

You are done!!

(Please note - Backdrops will have to be selected separately. I will share an updated version with this issue fixed.)

To install it just place the G_Tools folder in your .nuke folder and the following line in your init file.

nuke.pluginAddPath('./G_Tools')

Sign in or register to download or rate.