ZBrushCentral

Need to create a macro which turns on specified brushsettings and then undos them

Anyone know how i can create a macro in zbrush which turns on specified brush modification/stroke settings and then when clicked again will undo everything it just did leaving the brush back at its default settings?

This is so i can turn my organic brushes into hard surface clean planar brushes through tweaking the settings, and then easily revert back to its original state at the press of a button while sculpting.

I’m pretty sure it will require some coding knowledge with the macro, of which is a skill i do not possess :frowning:
Was hoping someone could re-code the macro I made for me?

I believe you can just create a macro for the changes you’d like to see to your brush. Then add another button to your interface that resets the brush. Making it a toggle will require coding as far as I am aware.

Wouldn’t it be easier to just have different brushes?

Yeah, that’s what i initially had done. However I need to be able to reset any brush i apply the macro to, to be reset to its untouched default settings. so creating a separate macro to revert changes i made for a brush will not work for any brush i happen to use in my workflow except for that one brush i first used when i recorded the macro.

I was hoping someone with coding experience could help. anyways, i’m inserting the macro here anyways.

//ZBRUSH MACRO - Recorded in ZBrush version 4.42
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.42]
[IPress,DIVIDER]
[ISet,Stroke:LazySmooth,6]
[ISet,Stroke:LazySmooth,16]
[ISet,Stroke:LazyStep,0.25]
[ISet,Stroke:LazyStep,0.001]
[IPress,Picker:Cont Ori]
[IUnPress,Stroke:Relative]
[IPress,Stroke:Relative]
[IPress,Stroke:Dots]
[ISet,Stroke:Mouse Avg,15]
[IPress,Brush:Samples:Fast Samples]
[IPress,Brush:Samples:OnSurface]
[IPress,Brush:Samples:ConstSamples]
[IPress,Brush:Curve:AccuCurve]
[IUnPress,Brush:Modifiers:ConstantTilt]
[IPress,Brush:Modifiers:ConstantTilt]
[IPress,DIVIDER]
]

All you need to do is press ‘Reset All Brushes’ at the bottom of the Brush palette. That will restore them to their default states.

It would be difficult to write a macro to work how you want with any brush you chose. The macro would need to store the default settings of all the brushes.