e_noni Posted August 24, 2017 Share Posted August 24, 2017 (edited) 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. Edited August 24, 2017 by e_noni Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted August 26, 2017 Share Posted August 26, 2017 I don't think you can do this with Python, but you can utilize <labelExpression> XML tag in your menu file. http://www.sidefx.com/docs/houdini/basics/config_menus Cheers. Quote Link to comment Share on other sites More sharing options...
e_noni Posted August 26, 2017 Author Share Posted August 26, 2017 that helps, thx stalkerx777! Quote Link to comment Share on other sites More sharing options...
e_noni Posted September 11, 2017 Author Share Posted September 11, 2017 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. 1 Quote Link to comment Share on other sites More sharing options...
ObiNon Posted October 16, 2018 Share Posted October 16, 2018 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 Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted October 17, 2018 Share Posted October 17, 2018 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. Quote Link to comment Share on other sites More sharing options...
ObiNon Posted October 17, 2018 Share Posted October 17, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.