open your script editor, and x-ray the scene and copy the mel script that it show in the script editor or find mel scripts that toggle x-ray on or off or other useful toggles {wireframe on shaded etc]from resources sites like highend or dannyngan.com or search the forum