Jump to content

access menu item


e_noni

Recommended Posts

hi,

is there a way to access the menu items with python to change dynamically the label name? or adding submenus etc.? in this case i want add a specific hipname beside the label.

thx for help or hints.

nic.

Capture.PNG

Edited by e_noni
Link to comment
Share on other sites

  • 3 weeks later...

some recap, for those who are interested in this. <labelExpression> just trigger python snippets/code/etc. @ startup. after that, they are fix.  <scriptMenuStripDynamic> does the job dynamically when you trigger the menu.

nic.

  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
23 hours ago, Mdonovan said:

Is there no way to build the menus with python on launch .. similar to Maya usersetup.py ?

I'm just getting started w menus now and was trying to avoid hardcoded xml.

Thanks

No there is no way to do that unless you build XML files with Python before Houdini initialize.

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...