Hi guys!
I’m trying to create a macro to TOGGLE between “Rotate on all axis” and “Rotate on Y axis”
This is what I have, but it does not work:
//ZBrush macro - save to ZBrush 2019.1\ZStartup\Macros\Misc\ folder
[IButton,???,"Toggle Trackball",
[IShowActions,0]
[IConfig,2019]
[Loop,1,
[If,([IsEnabled,Transform:Rot XYZ]==1), // if XYZ is enabled
[IPress,Transform:Rot Y] // press Y
[LoopExit]
]
[If,([IsEnabled,Transform:Rot Y]==1), // if Y is enabled
[IPress,Transform:Rot XYZ] // press XYZ
[LoopExit]
]
[If,([IsEnabled,Transform:Rot Z]==1), // if Z is enabled (just in case)
[IPress,Transform:Rot Y] // press Y
[LoopExit]
]
]
,,0.5] // half palette width button
It just change from XYZ to Y (and also from Z to Y) but the next time I press it nothing occurs: it does not change from Y to XYZ
What I’m doing wrong?
Thanks!