wanna click a button to lock or unlock a viewport.
How do I put this in a script?
Specify corner of viewport or
Viewport View Locking [ON/OFF]: on
Access a broad range of knowledge to help get the most out of your products and services.