Digital humans the art of the digital double
Ever wanted to know how digital doubles are created in the movie industry? This course will give you an insight into how it's done.
# 1 18-01-2006 , 02:15 PM
j5ive's Avatar
Subscriber
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752

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.


If you believe in telekinesis, raise my right hand.
# 2 18-01-2006 , 05:56 PM
pbman's Avatar
Subscriber
Join Date: Mar 2005
Location: London
Posts: 1,135
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


Now at SMU doing BSc 3D Computer Animation so its hard to get on here
My wire render tut https://forum.simplymaya.com/showthre...threadid=20973
# 3 19-01-2006 , 09:32 AM
j5ive's Avatar
Subscriber
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
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?


If you believe in telekinesis, raise my right hand.
# 4 19-01-2006 , 10:10 AM
Subscriber
Join Date: Oct 2003
Location: Scotland
Posts: 74
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.......

# 5 19-01-2006 , 10:24 AM
j5ive's Avatar
Subscriber
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
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?


If you believe in telekinesis, raise my right hand.
# 6 19-01-2006 , 10:33 AM
j5ive's Avatar
Subscriber
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Figured it out, thanks guys, I only should highlight the command minus the *.mel


If you believe in telekinesis, raise my right hand.
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