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)
-   -   Adding MEL Scripts (https://simplymaya.com/forum/showthread.php?t=19899)

j5ive 18-01-2006 02:15 PM

Adding MEL Scripts
 
I've just downloaded from SM the Xray toggle script. I have copied the *.mel into program files/alias/maya... /scripts along with the other mel files now do I have to trigger it to appear in the shelf somehow? as it currently isn't in the shelf.

pbman 18-01-2006 05:56 PM

go to that file double click the xray icon and it should open maya
open script editor (bottom left of screen)
it should say
toggleXray;
selct this and middle mouse button drag it onto what shelf u want e.g. cutom.
on that shelf it shold have an icon sayin mel
and that icon will toggle - from there u can edit it so it has a diff pic or wording
hope this helps
reply if u get stuck

j5ive 19-01-2006 09:32 AM

Thanks for the response. I followed what you said, but there appears to be an error as follows:

file -f -o "C:/Program Files/Alias/Maya6.0/scripts/startup/X_Ray.mel";
// Error: } //
// Error: "C:\Program Files\Alias\Maya6.0\scripts\startup\X_Ray.mel" line 42.1: Syntax error //
// Error: Error reading file. //
// Error: //

Maybe the file is corrupt, has anyone else had any probs recently with the xray toggle from this site before?

Any ideas?

keef 19-01-2006 10:10 AM

j5ive

I had a couple of problems using X-ray MEL scripts that I came across - until I used Danny Ngan's excellent script.

You can find it on his site www.dannyngan.com

Give it a try.......

j5ive 19-01-2006 10:24 AM

Cheers mate, though now I have the icon on my shelf when I click it i get the error message saying ' cannot find procedure toggleXray.mel

Any ideas?

j5ive 19-01-2006 10:33 AM

Figured it out, thanks guys, I only should highlight the command minus the *.mel


All times are GMT. The time now is 10:53 PM.

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