hi guys
i think this will toogle xray mode
################################################
from maya import cmds,mel
modelPanel=cmds.getPanel(wf=True)
if (cmds.modelEditor(modelPanel,q=1,xr=1)==1):
cmds.modelEditor(modelPanel,e=1,xr=0)
else:
cmds.modelEditor(modelPanel,e=1,xr=1)
################################################
*
sabareeshrg*
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---