SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Adding MEL Scripts
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 18-01-2006, 01:15 PM   #1
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default 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.
j5ive is offline   Reply With Quote
Old 18-01-2006, 04:56 PM   #2
pbman
Subscriber
 
pbman's Avatar
 
Join Date: Mar 2005
Location: London
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 http://forum.simplymaya.com/showthre...threadid=20973
pbman is offline   Reply With Quote
Old 19-01-2006, 08:32 AM   #3
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

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.
j5ive is offline   Reply With Quote
Old 19-01-2006, 09:10 AM   #4
keef
Subscriber
 
Join Date: Oct 2003
Location: Scotland
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.......
keef is offline   Reply With Quote
Old 19-01-2006, 09:24 AM   #5
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

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.
j5ive is offline   Reply With Quote
Old 19-01-2006, 09:33 AM   #6
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Figured it out, thanks guys, I only should highlight the command minus the *.mel
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 08:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.