View Single Post
# 8 17-07-2013 , 08:42 PM
Registered User
Join Date: Jul 2013
Posts: 4
Hello, I'd like to mention these MEL scripts that you can assign to any hotkey, using your Hotkey Editor.
These will toggle related view modes for your current viewport.

Wireframe on Shaded>
string $panel = `getPanel -wf`;
if ( `modelEditor -ex $panel` )
modelEditor -e -wos ( !`modelEditor -q -wos $panel` ) $panel;

X-Ray>
string $panel = `getPanel -wf`;
if ( `modelEditor -ex $panel` )
modelEditor -e -xray ( !`modelEditor -q -xray $panel` ) $panel;

Personally I have WoS on F4 and X-Ray on Alt-X, since I started learning 3D modeling with 3ds Max.

Author unknown, sorry man )