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)
-   -   getting xray on the shelf (https://simplymaya.com/forum/showthread.php?t=11433)

cracker 15-04-2004 08:02 PM

getting xray on the shelf
 
I cant get the xray option on my shelf like you do everything else??

jsprogg 15-04-2004 08:31 PM

there is a mel script right here in the download section of this site
http://www.simplymaya.com/download_p...id=10&typeid=4

you can use this on your shelf to operate the x-ray view.

cracker 20-04-2004 09:18 PM

ok I've got it downloaded now what do I do?

jsprogg 20-04-2004 09:28 PM

ok you have to put the Mel script in your scripts folder , which if you are using windows will be in C;/Document & Settings/your user name/ My Documents/Maya.
then type the name of the script into the comand line in maya and rightclick & highlight it.Then middle mouse button drag the script to the shelf of your choice.

owmyi 20-04-2004 09:42 PM

I'm getting a Syntax Error. Is it only for Maya 4.5?

jsprogg 20-04-2004 09:47 PM

make sure you copy the script name exactly with no spaces and dont type the (.mel) just the name of the script.

cracker 21-04-2004 07:31 AM

done all that and it still doesn't work :(

jsprogg 21-04-2004 07:58 AM

Hmmm.... well all I can suggest is that google for a different toggle x-ray.mel and try that....sorry !
Unless someone else has any ideas.

ransick 25-04-2004 04:57 PM

I googled practically all over the internet but didn't find the right plugin for maya 5.0! (xray_plugin)

Anybody did ?

R-Tillery 26-04-2004 07:05 AM

Try this one, it should do the trick.

Copy past to your MEL editor middel drag to your shelf.

string $sel[];
int $temp[];
int $value;

$sel = `ls -sl -dag -ap -typ surfaceShape`;

for ($obj in $sel){
$temp = `displaySurface -q -xRay $obj`;
$value = $temp[0];
if ($value == 1)
displaySurface -xRay 0 $obj;
else
displaySurface -xRay 1 $obj;
}

cracker 26-04-2004 07:07 AM

I've got one that works now

thanks :)

owmyi 26-04-2004 07:10 AM

R-Tillery, you're the man.

stephen20 29-04-2004 05:23 PM

xray
 
Where should you middle drag it from?

jsprogg 29-04-2004 05:37 PM

type the name of the mel in the command line i.e togglexray;
then select the name and MMB drag it to the shelf that you want it on.

R-Tillery 29-04-2004 10:14 PM

Re: xray
 
Quote:

Originally posted by stephen20
Where should you middle drag it from?
The MEL script editor in the lower right hand conor, drop it in then high light it then drag it to your tool shelf.;)


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018