Nk Script Editor it´s a Qt Panels integrated in Nuke to allow TDs to review and fix Nuke scripts easily. This tool can be use to quickly find invalid characters, bad structures o script errors in the nuke files that prevents Nuke from open them. Also it can be used to easily review Nuke nodes before publish them in a library.
The tool allows the loading of nuke scripts from the node graph, pasting the current nodes in the text editor, loading from the root filepath to the Nuke script or selecting manualy a .nk file to load. The text editor will highlight esencial key words in the script like: Node definitions, node names, knobs, user knob definitions, flags,...
The tool have a Search bar that can be open with "Ctrl+f". In this search bar you can search any word in the script or can change the search mode from all to: Node Type, Node Name, Knob or User Knob. Using this modes you will be able to jump from match to match and quickly find the node or knob you are looking for. The search bar also inclus a warning button that will spec the script looking for non ASCII characters that could be invalidad values for UTF-8. This invalid character will be highlighted in red too.
Jump bettwen break points ad find the problem in your script quickly like you will debug any python script.
Customize the highlighting and the wrap text mode and save your preference locally.
Quick help and links to the tool pages.
WIP
- Copy the
NkScriptEditorfolder and paste it in a folder that it's in your Nuke plugin path. The most common one, inside theUsers/YourUser/.nukedirectory. - Open with a text editor the file
menu.pythat lives next to yourNkScriptEditorfolder, or create one if it doesn’t exist. - Add this code:
import NkScriptEditor
NkScriptEditor.init()- Restart Nuke.
- Validation nk script lenguage.
- Compare two nuke scripts.
- Highlight invalid characters in red.
- Preference improvements.
- Node type and knob autocompletion.
- Debug system with break points.
- Preference system for highlight colors.
- Option to change encode for open and save.
- Improve paste system to use clipboard with backup.
- Add Help tab.
- Improve code documentation.
- Support PySide6 and PySide2 -> Support for Nuke 16.0 >=
First release


