Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 01-07-2007 , 06:26 AM
Registered User
Join Date: May 2007
Posts: 5

Shortcut for X-RAY

How can do you do a shortcut for the X-Ray opcion on the shelf?, or as a keyboard shortcut, it doesn't appear on the hotkeys menu or as a command on the script editor for copying it

Thanks

# 2 01-07-2007 , 06:16 PM
Jr.Who
Guest
Posts: n/a
Why didnÕt you just Google ÒX-Ray MEL scriptÓ?

# 3 22-07-2007 , 04:28 PM
Registered User
Join Date: Jul 2007
Location: France
Posts: 3
open up your script editor in maya.
go to Edit > Clear All. then paste the following to the bottom section of the script editor (Its called Input work area)


// Toggle Xray
//

string $visPanel[]=`getPanel -vis`;
int $mode;
if (size($visPanel)>0)
{
for ($panel in $visPanel)
{
if (`match "^modelPanel" $panel`=="modelPanel")
{
$mode=`modelEditor -q -xray $panel`;
if ($mode>0)
modelEditor -e -xray 0 $panel;
else
modelEditor -e -xray 1 $panel;
}
}
print ("\nxray="+$mode+".");
} else
print ("\nNo model panels to modify.");


after pasting it. highlight the whole code (ctrl + A) then go to File > Save Selected to Shelf, give a name to it. then it'll add the mel script onto the shelf that is active.

Enjoy

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads