PDA

View Full Version : creating custom menu item


maniselvaraj
07-07-2010, 10:48 AM
Hi,

I am trying to add custom menu in NUKE tool.

I created user folder in nuke installed folder/plugin folder.
I created menu.py and pasted inside the user folder.

I copied the folowing code in to menu.py,

m = menubar.addMenu("&Test")
m.addCommand("Test", "nukescripts.test()", "")

But nuke is not identifying this custom menu.
How to solve this problem? I want to create the custom menu using folder structure system only, instead pf copying the code in nuke menu.py.

Regards,
Mani

alkali22
07-07-2010, 05:51 PM
There's nothing wrong with your code. The problem is Nuke won't automatically search a folder just because you put a menu.py file in it... you have to explicitly tell it to.

Why not just put the menu.py in your user profile's ".nuke" folder, which is already part of the plugin path?

CGTalk Moderation
07-07-2010, 05:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.