ZBrushCentral

Macros for turns ON\OFF Y symmetry (Need a help)

Hi all

I would like to create one macro that turns Y symmetry on and off and assign this macro to the hotkey.

But it not allow “IPress” and “IUnPress”
That is, I have to write two macros: one for ON containing an IPress, and the second for OFF containing IUnPresss and I would not like it

How to make one macro for both actions?
If now the symmetry is ON then the macro should turn it OFF
If now the symmetry is OFF then the macro must enable ON

That would do the job.

[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.8][If, ([IsEnabled, “Transform:Edit”] == 1)
,//cmds

[If,( [IGet, “Transform:Activate Symmetry”] == 1 ) && ( [IGet, “Transform:>Y<”] == 1 )

,//cmd

[IUnPress, “Transform:Activate Symmetry”]

,//else

[IPress, “Transform:Activate Symmetry”]


[IPress, “Transform:>Y<”]

[IUnPress, “Transform:>X<”]

[IUnPress, “Transform:>Z<”]

]

,//else

[Note, “Please enter the Edit mode.”]

[Exit]

]
]

Many thanks!
It works great :smiley:

But a little bit remade.
Now this allows not to turn OFF the symmetry for other coordinates if they are ON

//ZBRUSH MACRO - Recorded in ZBrush version 4.8
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.8]
[If, ([IsEnabled, “Transform:Edit”] == 1)
,//cmds
[If,( [IGet, “Transform:Activate Symmetry”] == 1 ) && ( [IGet, “Transform:>Y<”] == 1 )
,//cmd
[IUnPress, “Transform:>Y<”]
,//else
[IPress, “Transform:>Y<”]
[IPress, “Transform:Activate Symmetry”]
]

,//else [Note, "Please enter the Edit mode."] [Exit] ]

]

glad to hear :slight_smile: