ZBrushCentral

Block Rotate Script

Hello i tried to make this script:

[IButton,“Enable/Disable Rotate”, “Enable or Disable Rotate Canvas mode”, //button
[If,Transform:Rot XYZ = 0, // if condition
[ISet,Transform:Rot XYZ,1] //Disable Rotate
[ISet,Transform:Rot X,0] //Disable Alternative Rotate
[ISet,Transform:Rot Z,0] //Disable Alternative Rotate
[ISet,Transform:Rot Y,0] //Disable Alternative Rotate
[ISet,Transform:Rotate Edit,0] //Disable Alternative Rotate
[Note,“Rotate XYZ Enable”] // Message
, //else
[ISet,Transform:Rotate Edit,0] //Disable Alternative Rotate
[ISet,Transform:Rot Z,0] //Disable Alternative Rotate
[ISet,Transform:Rot Y,0] //Disable Alternative Rotate
[ISet,Transform:Rot X,0] //Disable Alternative Rotate
[ISet,Transform:Rot XYZ,0] //Enable Rotate
[Note,“Rotate XYZ Disable”] // Message
] // end If
] // end Button

is possible to block rotation mouse?
I need to stop rotation with a button and reactivate it with the same button.
I want to work a block view. I tried with ZAppLink properties and to set and save a view but the rotation mouse is active.
this for me is a good experimental to know the ZScript and to improve my knowledge of it.

Thanks to help
Edward

No, that’s not possible. The only way you can stop the model rotating is to use Color>FillLayer to fill the canvas, then redraw the model and enter Edit mode. Right+click navigation will still work but Left+click won’t.