hello, I wanted to toggle some actions and after some research, i came up with this script, it seems logical but the macro is grayed out in Zbrush Ui and i can’t click on it, wondering if someone can suggest something in regard, much appreciation
//ZBRUSH MACRO - Recorded in ZBrush version 2022
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[VarSet,action_1,“Brush:ZModeler”]
[VarSet,action_2,“Brush:Move”]
[VarSet,curBrush,[IGetTitle,Brush:Current Brush,1]]
[If,([StrFind,action_1,curBrush]==0)&&([StrFind,curBrush,action_1]==0),
[IPress,action_2]
,//else
[If,([StrFind,action_2,curBrush]==0)&&([StrFind,curBrush,action_2]==0),
[IPress,action_1]
,//else select first brush
[IPress,action_1]
]
]
,0.5]