Little script to load automatically user nodes and gizmos.
- Go to your
.nuke
folder:- Windows:
C:\Users\{user}\.nuke
- Linux & Mac:
/home/{user}/.nuke
- Windows:
- Copy/paste the folder
user_nodes
of this package inside.nuke
. init.py
:- If
.nuke/init.py
does not exist, copy/paste theinit.py
of this package inside.nuke
. - If
.nuke/init.py
already exists, add the content from theinit.py
of 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.png
ormenu.jpg
will use it as the icon of the menu. - You can also add a
ToolName.png
orToolName.jpg
to 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 :-)