Individual Xray Mode Mel Script

Just started scripting and tried some really basic stuff hope everyone likes this script.
By default in Maya if you turn on Xray mode u will see all object in Xray.
But with the help XRAY Script you can view any particular object in Xray mode in Maya.
Soon i am going to publish this script as freeware at Highend3d.

http://vimeo.com/ankitgajjar/xraytest

Sounds useful.
I have it set as a shelf button to toggle it.
displaySurface -xRay true;

[QUOTE=dgovil;13418]Sounds useful.
I have it set as a shelf button to toggle it.
displaySurface -xRay true;[/QUOTE]

Ya its useful for car modeler because many modeler uses plane to set ref as if they want to see those planes in xray they can’t because the dnt know scripts and mel function.
just a try to help those who not friendly with mel.