Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Xray shortcut - mel isn't functioning properly (https://simplymaya.com/forum/showthread.php?t=13812)

t3logy 04-10-2004 07:26 PM

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

Pony 04-10-2004 07:58 PM

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

13uRneR 05-10-2004 12:12 AM

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

t3logy 05-10-2004 02:20 AM

Tx Pony. I get the following - Error: "$currentPanel" is an undeclared variable.

Quote:

Originally posted by 13uRneR
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

Please, thank you.

t3

AlphaFlyte 05-10-2004 02:38 AM

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;
}
};

t3logy 05-10-2004 04:46 AM

Thank you, thank you, thank you! It functions properly.

WhooHoooo!:laugh:

T3logy

13uRneR 07-10-2004 01:17 AM

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

13uRneR 07-10-2004 01:18 AM

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