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:

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

Sounds like you know a lot about transformations, can you maybe help me with my problem?I made a post here