/* Macro to move Gizmo3D to center of canvas Save this file to ZBrush 2018\ZStartup\Macros\Misc\ folder and press Macro>Reload All Macros */ [IButton,???,"Put Gizmo in center of canvas", [IShowActions,0] [IConfig,2018] [If,[MemGetSize,Gizmo_trans],, [MVarDef,Gizmo_trans,9,0] ] [If,[IsEnabled,Transform:Edit], [If,[IGet,Transform:Edit]==0,[Exit]] ,[Exit] ] [IFreeze, [If,[IGet,Transform:Draw Pointer]==1, [IPress,Transform:Move] ] [MTransformGet,Gizmo_trans,0] [IPress,Layer:Fill] [IClick,1004,10,10,10,100] [IPress,Transform:Edit] [MTransformSet,Gizmo_trans,0] [IPress,Transform:Move] [IUnPress,Transform:Gizmo 3D] [VarSet,xPos,([IWidth,1004]/2)] [VarSet,yPos,([IHeight,1004]/2)] [IClick,1004,xPos,yPos,xPos-1,yPos-1] [IPress,Layer:Clear] [IPress,Transform:Gizmo 3D] ] ,,0.5]