Menu Parameter Default Value Using Python

   328   0   0
User Avatar
Member
22 posts
Joined: Oct. 2021
Offline
Hi guys,

I created an HDA, and I have an ordered menu parameter in there. The items of the menu are generated from a script, and I have a string parameter that is able to add the string parameter value into the menu item itself. I would like to set the default value of the parameter to a certain value using the token of the menu items. The issue is that the "MenuParmTemplate" class only accepts the index of the menu item. If there is a change in the string parameter value, the value in the menu item changes as well, and that could mess up the default value if it is using an index. Is there a possible way that I can set the default value of the menu parameter using the token of the menu items? Thanks in advance.
Edited by martinalex - June 20, 2025 13:21:22
  • Quick Links