Little script to load automatically user nodes and gizmos.
- Go to your
.nukefolder:- Windows:
C:\Users\{user}\.nuke - Linux & Mac:
/home/{user}/.nuke
- Windows:
- Copy/paste the folder
user_nodesof this package inside.nuke. init.py:- If
.nuke/init.pydoes not exist, copy/paste theinit.pyof this package inside.nuke. - If
.nuke/init.pyalready exists, add the content from theinit.pyof this package into the.nuke/init.py.
- If
- Voila!
Simply add your ToolName.nk or ToolName.gizmo inside the user_nodes folder, then restart Nuke if already open.
They will be automatically loaded and added into a custom node menu.
- Adding a
menu.pngormenu.jpgwill use it as the icon of the menu. - You can also add a
ToolName.pngorToolName.jpgto add an icon to your tool in the menu (exact same name than the tool itself).
Example:
.nuke/
init.py
user_nodes/
menu.py
menu.png
ProKeying.nk
ProKeying.png
ToolCool.nk
ToolCool.png
...
I suggest to use groups .nk for simple/stand-alone tools, and using gizmo .gizmo only for tool using external source code for example.
To convert a gizmo into a group, change the file ext .gizmo by .nk and edit the top part Gizmo { by Group {.
Groups can be copied/pasted easily, and a nuke script using them can be opened from anywhere. Gizmos can't be used if you didn't installed it (like with this tool), so if you send a nuke script to someone else, this person will not be able to open it correctly without installing the gizmo. Also, groups allow users to see what's happening inside the tools, it's more instructive :-)