View Full Version : creating custom menu item

07 July 2010, 09:48 AM

I am trying to add custom menu in NUKE tool.

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

I copied the folowing code in to,

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


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

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

CGTalk Moderation
07 July 2010, 04: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.