I have a menu being generated by a python script. So like: , with the tokens the same as the item.
Is there a way I can specify the default value by the token string, not the menu item index in the Type Properties dialog. I want to just specify ‘b’ as the default, not 1.
Setting default menu item on Menu Script by token name
6082 6 1-
- JordanWalsh
- Member
- 145 posts
- Joined: Feb. 2012
- Offline
-
- Infernalspawn
- Member
- 229 posts
- Joined: May 2006
- Offline
-
- JordanWalsh
- Member
- 145 posts
- Joined: Feb. 2012
- Offline
the problem is that it doesnt set it first time you create the node. You can ‘revert to default’ to get the right value but it dosent get set initially.
Maybe the menu is trying to set the default before the menu items are built so ends up not finding the item and reverts to 0, then once the UI is available the item can be found but is already set to 0.
Maybe the menu is trying to set the default before the menu items are built so ends up not finding the item and reverts to 0, then once the UI is available the item can be found but is already set to 0.
-
- Infernalspawn
- Member
- 229 posts
- Joined: May 2006
- Offline
-
- JordanWalsh
- Member
- 145 posts
- Joined: Feb. 2012
- Offline
-
- Infernalspawn
- Member
- 229 posts
- Joined: May 2006
- Offline
-
- JordanWalsh
- Member
- 145 posts
- Joined: Feb. 2012
- Offline
-
- Quick Links

