View Single Post
# 10 01-10-2007 , 02:10 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
got it working by converting the attribute to a vector but I'm guessing this is more of a lucky hack than anything else?

Code:
vector $xRayVar3 = `displaySurface -q -xRay`;
if ($xRayVar3) {
    displaySurface -xRay false;
} else {
    displaySurface -xRay true;
};
Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net