View Single Post
# 5 13-10-2005 , 07:51 AM
Falott's Avatar
Registered User
Join Date: Jan 2005
Location: vienna
Posts: 1,095
a general way to find out yourself would be to look into the Script Editor. first goto Edit and choose Clear All to have all nice and clean. then you check under the Script tab -> Echo All Commands. Script Editor would show something like -

editMenuUpdate MayaWindow|mainEditMenu;

next you toggle on X-Ray in the shading tab. Script Editor will show something like -

modelEditor -e -xray 1 modelPanel4;
// Result: modelPanel4 //
editMenuUpdate MayaWindow|mainEditMenu;

if toggled off -

modelEditor -e -xray 0 modelPanel4;
// Result: modelPanel4 //
editMenuUpdate MayaWindow|mainEditMenu;


important for you would be 2 lines of mel-

modelEditor -e -xray 1 modelPanel4;
modelEditor -e -xray 0 modelPanel4;

1st line = 1 = on
2nd line = 0 = off

just copy both lines to the shelf and you have created your own buttons within a minute. you could also create a marking menu and throw those little buttons into. use the sript Editor! it can save you tons of time for simple stuff like that.


everything starts and ends in the right place at the right time.

Last edited by Falott; 13-10-2005 at 07:55 AM.