View Full Version : Hotkey
hi, could someone tell me how to set up a hotkey to toggle XRay shading on/off in the current viewport ?
thanks
|
|
DarkBane
05-15-2003, 01:59 AM
Here ya go, courtesy of my roommate
X-Ray
string $currentPanel = ` getPanel -wf `; int $tester = `modelEditor -q -xray $currentPanel `; { if ($tester < 1) {
modelEditor -e -xray 1 $currentPanel; } else { modelEditor -e -xray 0 $currentPanel; } };
WireFrameshaded
string $currentPanel = ` getPanel -wf `; int $tester = `modelEditor -q -wos $currentPanel `; { if ($tester < 1) {
modelEditor -e -wos 1 $currentPanel; } else { modelEditor -e -wos 0 $currentPanel; } };
Just create a new hotkey using these.
good luck
thanks!!
i never thought just setting a hotkey would mean all this scripting :eek:
hehe
oh, and thanks to your roommate too!
DarkBane
05-15-2003, 05:28 AM
My roommate found this from someone else on CGTalk. I don't know if it's the best way of doing it, but it works fine.
CGTalk Moderation
01-15-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.