View Single Post
# 10 26-04-2004 , 07:05 AM
R-Tillery's Avatar
Subscriber
Join Date: May 2003
Location: Ventura California
Posts: 966
Try this one, it should do the trick.

Copy past to your MEL editor middel drag to your shelf.

string $sel[];
int $temp[];
int $value;

$sel = `ls -sl -dag -ap -typ surfaceShape`;

for ($obj in $sel){
$temp = `displaySurface -q -xRay $obj`;
$value = $temp[0];
if ($value == 1)
displaySurface -xRay 0 $obj;
else
displaySurface -xRay 1 $obj;
}