Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Sometimes it's useful to change the "Home" view for a camera. This doesn't do that. But it's easy to do that with a bookmark, and then you can use this script to restore that view, preferably w/a hotkey. You can install the script, or here is the code (take it out of the global proc if you are going to paste it directly into a hotkey):
/* This script will move the camera in the panel under the mouse to
a bookmark with the name: "camNameHome" (The window does not have to be
the current window). It requires the bookmarks to be setup by the
user (View>Bookmarks>Edit Bookmarks). I.E. the bookmarks for the
default cameras would be named: topHome, sideHome, frontHome, and perspHome. Install in user scripts directory. To
assign to a hot key, in the hot key editor, make a new command and
assign "pfm_camGoHome();" (no quotes). The "Home" key works great. It will generate a warning if there is no "camNameHome" in the panel in which it is invoked. */