SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Xray shortcut - mel isn't functioning properly
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 04-10-2004, 08:26 PM   #1
t3logy
Subscriber
 
t3logy's Avatar
 
Join Date: Mar 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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
__________________
All great projects succeed one step at a time. One lone step firmly placed.

Last edited by t3logy : 04-10-2004 at 08:41 PM.
t3logy is offline   Reply With Quote
Old 04-10-2004, 08:58 PM   #2
Pony
Subscriber
 
Pony's Avatar
 
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
Thanks: 0
Thanked 6 Times in 6 Posts
Default

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
Attached Thumbnails
Click image for larger version

Name:	xratfort3logy.jpg
Views:	72
Size:	72.7 KB
ID:	17718  
Pony is offline   Reply With Quote
Old 05-10-2004, 01:12 AM   #3
13uRneR
Subscriber
 
13uRneR's Avatar
 
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
__________________
Pretzels and Beer
Pizza Pockets and Computer programers
Shortcuts and 3D artists

May we always be together.
13uRneR is offline   Reply With Quote
Old 05-10-2004, 03:20 AM   #4
t3logy
Subscriber
 
t3logy's Avatar
 
Join Date: Mar 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

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
__________________
All great projects succeed one step at a time. One lone step firmly placed.
t3logy is offline   Reply With Quote
Old 05-10-2004, 03:38 AM   #5
AlphaFlyte
Subscriber
 
AlphaFlyte's Avatar
 
Join Date: Nov 2003
Location: Sweden
Posts: 326
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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;
}
};
__________________
Currently working on reclaiming Space
The Salvation Prophecy
AlphaFlyte is offline   Reply With Quote
Old 05-10-2004, 05:46 AM   #6
t3logy
Subscriber
 
t3logy's Avatar
 
Join Date: Mar 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

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

WhooHoooo!:laugh:

T3logy
__________________
All great projects succeed one step at a time. One lone step firmly placed.
t3logy is offline   Reply With Quote
Old 07-10-2004, 02:17 AM   #7
13uRneR
Subscriber
 
13uRneR's Avatar
 
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is for changing, front:Top:Sideerspective 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
Attached Images
File Type: bmp xrayon.bmp (3.1 KB, 20 views)
__________________
Pretzels and Beer
Pizza Pockets and Computer programers
Shortcuts and 3D artists

May we always be together.
13uRneR is offline   Reply With Quote
Old 07-10-2004, 02:18 AM   #8
13uRneR
Subscriber
 
13uRneR's Avatar
 
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and now the Off button
Attached Images
File Type: bmp xrayoff.bmp (3.1 KB, 17 views)
__________________
Pretzels and Beer
Pizza Pockets and Computer programers
Shortcuts and 3D artists

May we always be together.
13uRneR is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.