Jump to content

adding a menu item to the network editor right-click menu


macka

Recommended Posts

Hey all, I'm new to houdini, and developing interfaces to in-house software tools. I've been reading this forum for a little while, and it's been a great resource! I can create shelf-buttons, put items into the main houdini menus, and am getting around the python worlflow fairly comfortably - but, i can't seem to find where to edit right-click menus in different parts of the interface, or even whether it is possible.

I can see that OPmenu has some right-click menu functions, but it seems that OPmenu is limited to when it clicks on an actual operator in the network view... I wanted to add something to the general menu that comes up when you right-click an empty space in the network view....

is this posible, and if so does anyone have an example of how to do it??

cheers!!

Link to comment
Share on other sites

  • 3 years later...

I know this is a very old post but I am wondering how can be done? I am not asking if that can be done, because I have seen it in a major studio I was working in London. Actually it was node based, for example RMB on a null you had some extra items than in the other nodes. 

Link to comment
Share on other sites

I know this is a very old post but I am wondering how can be done? I am not asking if that can be done, because I have seen it in a major studio I was working in London. Actually it was node based, for example RMB on a null you had some extra items than in the other nodes. 

Take a look at OPMenu file in $HFS/houdini folder. You can define your own menu actions there. It uses hscript for callbacks, but you can use 'python' hscript command to call python. :)

 

Good luck.

Link to comment
Share on other sites

Take a look at OPMenu file in $HFS/houdini folder. You can define your own menu actions there. It uses hscript for callbacks, but you can use 'python' hscript command to call python. :)

 

Good luck.

 

 

Thanks Alexey, I love these small hacks in Houdini.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...