Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 18-01-2006, 02: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, 05: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, 09: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, 10: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, 10: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, 10: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
Reply


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

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.