Hi I want to change a menu parameter of a state, depending on the input geometry. similar to the weight paint tool, that shows all the bones that are available to paint.
How can I achieve this. The menu gets defined in the createViewerStateTemplate method, but there I have no access to the object that invokes the state.
I also guess, that this is not the right place to define a dynamic behavior of the menu
is there a way to modify the content of a menu parameter in relation to the input geometry, for example?
thanks You for Your time
Python States: Dynamic Parameters?
1882 4 1-
- sanostol
- Member
- 578 posts
- Joined: Nov. 2005
- Offline
-
- mabelzile
- Staff
- 447 posts
- Joined: Feb. 2018
- Offline
There is no support yet to define a context menu dynamically but you can update the menu and menu items with `onMenuPreOpen`.
Check out the context menu help. [www.sidefx.com]
Check out the context menu help. [www.sidefx.com]
-
- sanostol
- Member
- 578 posts
- Joined: Nov. 2005
- Offline
-
- mabelzile
- Staff
- 447 posts
- Joined: Feb. 2018
- Offline
-
- sanostol
- Member
- 578 posts
- Joined: Nov. 2005
- Offline
-
- Quick Links