A simple script to demonstrate Gimballock.
Different Colors show the Gimbal State:
Blue, Green, Yellow, Red(Full Gimbal Lock)
The Gimbal Warn Limits can be adjusted inside the script.
This script is a toggle. So run it again to turn of the feature.
If you have already colored your joints, these colors will be saved and reverted when you run the script again.
Just source the full script, select the joints/objects to be displayed and run inside a python tab:
gimbalViewer(gSwitch, sel)
Hope it's usefull for someone...