Is it possible to access the "Cropped Perspective" setting under Document Preferences with scripting so that it can be made a menu item? My end goal is to assign it to one of my 3Dconnexion mouse buttons to be able to quickly toggle it on and off. I assume the answer might involve scripting, but I don't have any experience with that.
The following will toggle the crop on and off when you are in a perspective view.
SetPref(127, Not GetPref(127));
Copy that line, go to Tool:Plugins:Plugin Manager. Click the New button and choose Menu Command. Click Edit Script and paste in the line above. Click OK. Click Close.
Edit your workspace to include the new command.
Let us know if you need more help.