e_noni 3 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 Share this post Link to post Share on other sites
Stalkerx777 168 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. Share this post Link to post Share on other sites
e_noni 3 Posted August 26, 2017 that helps, thx stalkerx777! Share this post Link to post Share on other sites
e_noni 3 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 Share this post Link to post Share on other sites
Mdonovan 4 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 Share this post Link to post Share on other sites
Stalkerx777 168 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. Share this post Link to post Share on other sites
Mdonovan 4 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. Share this post Link to post Share on other sites