Jump to content
e_noni

access menu item

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
3 minutes ago, Stalkerx777 said:

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

that is exactly what I thought you were going to say =P ... so a wrapper seems like the best way.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×