Created
December 1, 2017 14:59
-
-
Save manhha00/a6ad1fea7262022d6af1fb274face10a to your computer and use it in GitHub Desktop.
maya - mel - xray toggle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Toggle Viewport X-Ray: | |
$currentPanel = `getPanel -withFocus`; | |
string $panelType = `getPanel -to $currentPanel`; | |
if ($panelType == "modelPanel") | |
{ modelEditor -e -xray ( !`modelEditor -q -xray $currentPanel` ) $currentPanel; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment