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.
1.Description - This script allows you to lock a camera position in place by locking its channel box attributes (translate, rotate and scale) in a toggle way without having to manualy select the camera, the script will lock the camera of the active viewport.
2.Installa) copy "do_lock_camera.mel" to your Maya's scripts directory (Example: "C:\...\Documents\maya\version\scripts"). b) Start Maya. If you have it already open type "rehash" in the command window and execute.c) the script should be sourced now ... If it isn't then u can manualy source it from the Script Editor (Window--> General Editors --> Script Editor).
3.How it works - Make sure you have a viewport active like perspective, top, right etc or other custom camera. And when you decide that you want to lock its position just run this script command: "lock_camera()"4.Issues - None so far This script may be freely distributed. Use/Modify at your own risk!Special thanks to Zhang Jian for his getCurrentCamera() script(https://acaciaecho.wordpress.com/)
// Dragos Olariu// dragosholariu@gmail.com
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.