ZBrushCentral

Always Fit the selected tool to canvas?

Hello guys
I just wanted to ask : Is there a way to always FIT the selected tool to canvas, no matter if there is a other subtools? Because now if I have two subtools, one very small and the other very big, if I press the FIT button, it will fit one time the smaller one and then the bigger one and after that again the smaller and etc… The only way that I found is to hide the other subtool.

Thanks

i found a solution , i just post it here if is somebody need the same stuff

[IFreeze,

//Get zoom value 1
[IPress,Transform:Fit]
[TransformGet, xPos, yPos, zPos, xSc, ySc, zSc, xRot, yRot, zRot]
//set val to the zoom 1
[VarSet, xSc2, xSc]

//Get zoom value 2
[IPress,Transform:Fit]
[TransformGet, xPos, yPos, zPos, xSc, ySc, zSc, xRot, yRot, zRot]

//compare zoom value
[If, xSc2>xSc
,//OK
[IPress,Transform:Fit]
,//Else
]//End

]//Edn Freeze

1 Like