//spooXrayToggle //toggle xray mode on selected objects instead of full screen //Spencer Lindsay //10-29-03 // //NOTE: //displaySurface, for some reason returns an int that cannot be queried //as inverted so I subtract 1 from it no matter what and it toggles. //-1 is still non-zero global proc spooXrayToggle() { string $object[] = `ls -sl`; for($this in $object) { int $vals[] = `displaySurface -q -xRay $this`; displaySurface -x ($vals[0] - 1) $this; } }