Script: Protecting object transformations

Hello folks.

Here is a small script I had written for one of my personal projects.

By pressing the Y-KEY in object mode, you can now toggle on/off the locking of the transformations of selected objects.

Blend file with the script:
protectTransformsTest.blend

I have some other ideas that I want to implement. Will post updates in this thread itself. Hope this is useful to you. :smiley:

http://uploader.polorix.net//files/292/Blender/Tutorials/Python/lockSelectedVariousVersions2.blend.jpg

Sounds like you know a lot about transformations, can you maybe help me with my problem?I made a post here http://blenderartists.org/forum/showthread.php?t=130103