Lock and Unlock Objects
When importing cameras into my scenes, I almost always lock them to avoid unintended alterations. This can be avoided by referencing the camera in, but the script is a macro that puts the effort of heading to the channel box, highlighting the transforms, and locking or unlocking. This script puts all that into a button, so click to lock, and click again to unlock.
The script works on all objects but the intended purpose was just to lock down my cameras - it was called lock_down_camera() and the multi function was a happy accident.
Code snippet.