Xray shortcut - mel isn't functioning properly
I searched the archives on this subject attempting all suggestions. Why won't it function?
Any suggestions will be greatly appreciated. t3 [EDIT] Nevermind. I'll live with it. Sorry to have wasted your time. MOD - Please remove thread. tx |
1 Attachment(s)
In your hotkey pannel.
Window > Settings/Prefrences > Hotkeys. try this out.. put it in the users and add a new comand down there. Looks like this. Let me know if I need to explain better |
I made my own X-ray buttons, I made two, one that changes all main views to X-ray and one that turns them all off, ask if you would like to have the MEL script, very short and simple
I also made two litle Icons :p |
Tx Pony. I get the following - Error: "$currentPanel" is an undeclared variable.
Quote:
t3 |
Open up the script editor, do menu->Edit->Clear All
Paste the below code in, highlight it with the mouse and MMB drag it onto the shelf. Voila. This script is great for toggling X-Ray on and off. ---------------------------------------------------- // This toggles Xray on current Panel. Rating: 10/10 // Author: Luis Cataldi ---------------------------------------------------- if (`getPanel -to (eval("getPanel -withFocus"))`) { $currentPanel = `getPanel -withFocus`; if (`modelEditor -q -xray $currentPanel`) { modelEditor -edit -xray 0 $currentPanel; } else { modelEditor -edit -xray 1 $currentPanel; } }; |
Thank you, thank you, thank you! It functions properly.
WhooHoooo!:laugh: T3logy |
1 Attachment(s)
this is for changing, front:Top:Side:Perspective into X-ray simultaniously (helps if you change views a lot)
X-ray On = modelEditor -e -xray 1 modelPanel4; modelEditor -e -xray 1 modelPanel3; modelEditor -e -xray 1 modelPanel2; modelEditor -e -xray 1 modelPanel1; X-ray Off = modelEditor -e -xray 0 modelPanel4; modelEditor -e -xray 0 modelPanel3; modelEditor -e -xray 0 modelPanel2; modelEditor -e -xray 0 modelPanel1; I have attached the X-ray button Icons I made to |
1 Attachment(s)
and now the Off button
|
All times are GMT. The time now is 07:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018