ZBrushCentral

Loop in Macro

Hello.

I spent much time to find answer for my question without result :smiley: How to create loop in my recorded Macro. Precisely…

I recorded new macro with one action UnCreaseAll. How to make a loop to play this action for every subtool ?

Here you are:

[IButton,???,‚ÄúUncrease All for all subtools‚ÄĚ,
[IShowActions,0]
[IConfig,4.8]
[VarSet,activST,[SubToolGetActiveIndex]]//store active subtool
[Loop,[SubToolGetCount],//loop through all subtools
[SubToolSelect,[Val,n]]
//put code below for each subtool
[IPress,Tool:Geometry:UnCreaseAll]

,n]//end loop
[SubToolSelect,activST]//reselect active subtool

]//end of macro

Ohhh thank you mate!