Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

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
 
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.

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

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


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

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.