Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 04-10-2004 , 07:26 PM
t3logy's Avatar
Subscriber
Join Date: Mar 2004
Posts: 159

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 07:41 PM.
# 2 04-10-2004 , 07:58 PM
Pony's Avatar
Subscriber
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
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
# 3 05-10-2004 , 12:12 AM
13uRneR's Avatar
Subscriber
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
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.
# 4 05-10-2004 , 02:20 AM
t3logy's Avatar
Subscriber
Join Date: Mar 2004
Posts: 159
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.
# 5 05-10-2004 , 02:38 AM
AlphaFlyte's Avatar
Subscriber
Join Date: Nov 2003
Location: Sweden
Posts: 326
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
# 6 05-10-2004 , 04:46 AM
t3logy's Avatar
Subscriber
Join Date: Mar 2004
Posts: 159
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.
# 7 07-10-2004 , 01:17 AM
13uRneR's Avatar
Subscriber
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
this is for changing, front:Top:Sideuser added imageerspective 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, 149 views)

Pretzels and Beer
Pizza Pockets and Computer programers
Shortcuts and 3D artists

May we always be together.
# 8 07-10-2004 , 01:18 AM
13uRneR's Avatar
Subscriber
Join Date: Sep 2004
Location: Ottawa Ontario, Canada
Posts: 221
and now the Off button

Attached Images
File Type: bmp xrayoff.bmp (3.1 KB, 144 views)

Pretzels and Beer
Pizza Pockets and Computer programers
Shortcuts and 3D artists

May we always be together.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads