// =================== // Toggle xray on/off // =================== global proc toggleXray() { $currentPanel = `getPanel -withFocus`; if ( (`getPanel -typeOf $currentPanel`) == "modelPanel" ) modelEditor -e -xray ( !`modelEditor -q -xray $currentPanel` ) $currentPanel; }