if (`getPanel -to (eval("getPanel -withFocus"))`) { $currentPanel = `getPanel -withFocus`; if (`modelEditor -q -xray $currentPanel`) { modelEditor -edit -xray 0 $currentPanel; } else { modelEditor -edit -xray 1 $currentPanel; } };