CleanScript v1.2
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Dario Siero
Removes the non used nodes of a script.
v1.2. Also working with backdrops
Requirements:
11.0, 10.5, 10.0, 9.0, 8.0 or later
Windows
11.0, 10.5, 10.0, 9.0, 8.0 or later
Windows


Select one or more nodes and it will clean up the script, just saving the nodes used and its dependencies (including expressions)
It's recursive, be patient in long scripts
menu.py
import CleanScript_lite
import CleanScript_panel
sMenu = nuke.menu('Nuke').addMenu('Scripts')
sMenu.addCommand('Clean Script', 'CleanScript_panel.main()')
sMenu.addCommand('Clean Script (lite)', 'CleanScript_lite.main()')
Please login in order to download these files.