Nuke menu.py

Just getting started with shotgun and was hoping someone could help me understand the nuke wrapper a little more.

Basically, I made some changes in my c:\users\username.nuke\menu.py file and I can see them when I launch vanilla but launching through shotgun negates any changes I made.

I’ve got the project config cracked open but can’t find anything about this :frowning:

Any ideas?

3 Likes

Hi @tombox,

Nuke looks for menu.py and init.py in the path laid out in the NUKE_PATH environment variable. The app that handles launching software, tk-multi-launchapp , has a before_app_launch hook, which runs, as the name suggests, before it launches a piece of software. You can append the path to your menu.py and init.py to the NUKE_PATH environment variable in this hook.

-David

4 Likes