Created
January 9, 2016 11:57
-
-
Save AndrewHazelden/47c739b00524a4d6a0a1 to your computer and use it in GitHub Desktop.
A MEL script to inspect the pane element under the cursor.
This file contains hidden or 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
// Find out the name of the Maya GUI pane element under the cursor | |
string $pointedPaneElement = `paneLayout -paneUnderPointer`; | |
string $paneConfig = `paneLayout -query -configuration $pointedPaneElement`; | |
int $paneChildren = `paneLayout -query -numberOfChildren $pointedPaneElement`; | |
string $docTag = `paneLayout -query -docTag $pointedPaneElement`; | |
int $visible = `paneLayout -query -visible $pointedPaneElement`; | |
int $manage = `paneLayout -query -manage $pointedPaneElement`; | |
int $enable = `paneLayout -query -enable $pointedPaneElement`; | |
int $width = `paneLayout -query -width $pointedPaneElement`; | |
int $height = `paneLayout -query -height $pointedPaneElement`; | |
string $annotate = `paneLayout -query -annotation $pointedPaneElement`; | |
string $children[] = `paneLayout -query -childArray $pointedPaneElement`; | |
print("Maya Pane Inspector" + "\n"); | |
print("[Pane] " + $pointedPaneElement + "\n"); | |
print("[Config] " + $paneConfig + "\n"); | |
print("[Visible] " + $visible + "\n"); | |
print("[Width] " + $width + "\n"); | |
print("[Height] " + $height + "\n"); | |
print("[Enable] " + $enable + "\n"); | |
print("[Annotate] " + $annotate + "\n"); | |
print("[docTag] " + $docTag + "\n"); | |
print("[Manage] " + $manage + "\n"); | |
print("[Number of Children] " + $paneChildren + "\n"); | |
print("[Children] "); | |
print($children); | |
print("\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment