View Single Post
# 5 05-10-2004 , 02:38 AM
AlphaFlyte's Avatar
Subscriber
Join Date: Nov 2003
Location: Sweden
Posts: 326
Open up the script editor, do menu->Edit->Clear All
Paste the below code in, highlight it with the mouse and MMB drag it onto the shelf. Voila. This script is great for toggling X-Ray on and off.

----------------------------------------------------
// This toggles Xray on current Panel. Rating: 10/10
// Author: Luis Cataldi
----------------------------------------------------

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;
}
};


Currently working on reclaiming Space
The Salvation Prophecy