toggle tool settings with mel

 
 
 
Posted by:barayase
Data created:14 January 2023

Im exploring most basic scripting to speed up the process, for example comb brush 'affect selected only' command for on is OxCombBrushTool -e -aso on oxCombBrushTool1; whats the proper syntax to make this setting to toggle on off

Many thanks

Mark

Hi,

You can check our internal MEL and python scripts. For our Marking Menu tool we use the method oxToggleSwitchOption which will toggle this option ON and OFF for whatever Ornatrix tool is active.

(Your example will only work with OxCombBrushTool specifically) However, these scripts are only available in the beta(The Ornatrix marking menus are a new feature implemented in the beta):


Although the scripts may still be deployed with V3. Search for it in Ornatrix's scripts folder.

I think you can do this easily by:

  1. Getting the current context,
  2. Get the Affect Selected Only attribute value
  3. and setting it depending on the current value. 

 

 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

HI. I was building my own simple marking menu, beta menu is amazing. I just wanted the toggle -aso for comb brush its my most frequent tool.

Found the commands and marking menus, some the basic brush selection does work, I take it the commands and some of the tools are v4 beta only.

Many thanks