ZBrushCentral

Question: Dynamic Subdivision Toggle for all SubTools

This is what I have so far:

//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.73]
[IKeyPress,SHIFT,[IPress,Tool:SubTool:SelectUp]]

[Loop,[SubToolGetCount],

[IPress,Tool:Geometry:s.Dynamic]
[IPress,Tool:SubTool:SelectDown]

]]

How do I get this to toggle? At the moment it only turns it on for all SubTools.

I think that the alternate (off) command is “[IUnPress,Tool:Geometry:s.Dynamic]”.

Inside the loop, you just need to test to see if the button is on or off and then turn on/off as needed:

[If,[IGet,Tool:Geometry:s.Dynamic] == 1, //Dynamic Subd is ON
[IUnPress,Tool:Geometry:s.Dynamic]
,//else is OFF so turn on
[IPress,Tool:Geometry:s.Dynamic]
]

It Works!! :smiley:

Marcus you Legend you. Thank You so much.