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 04-05-2005, 12:28 AM   #1
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default creating a MEL interface

although I don't consider myself a good programmer, I understand most syntax and similar issues. But I'm trying to create an interface for a script, so that when I hit the shelf button for it, it pops up a small window with a couple of slider bars and fields.

Specifically, I'm using the interface to create Lego plates. I already have all the pieces, and I know how to program well enough to get them rotated properly and placed correctly; they're even boolean-able (one of my primary concerns in building them). But the problem is, I don't know how to build the user interface I need to streamline the process (rather than text-summoning the script).

I know how to create a do some stuff to intSliderGroups (like limit them to greater than 1, etc.), but I can't figure out how to read the data that they posses after that, so I can use it to create plates. I need to be able to assign the data in the field to a variable, but nothing I have tried so far seems to work. For this type of control, or any other.

Any ideas? I'm fresh out. Let me Know.
Thanks.
Xander-0 is offline   Reply With Quote
Old 04-05-2005, 01:56 AM   #2
Pony
Subscriber
 
Pony's Avatar
 
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
Thanks: 0
Thanked 6 Times in 6 Posts
Default

there are some mel tutorials around for creating some UI for your scripts.. The doc's are a little skectchy but what your asking for is in there also. I seen it but haven't gotten to try it my self yet..
Pony is offline   Reply With Quote
Old 31-05-2005, 10:02 PM   #3
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

this script might help. I use it for driving some properties on cameras when I'm using an image plane.

Try setting up a camera with an image plane, and then running this script to see how it works. Make sure the camera is the active view when you run the script.
Attached Files
File Type: zip filmoffset.zip (2.8 KB, 14 views)
Dann is offline   Reply With Quote
Old 31-05-2005, 10:35 PM   #4
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

You might also want to check out my dnPolyhedron script on my tools page (www.dannyngan.com/tools.htm) to see how I use the sliders. I also have it setup to remember the previously used settings, so you don't have to start from the same values each time you open the window.
__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
Old 03-06-2005, 12:18 AM   #5
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default

many thanks! I think I can manage, now!
Xander-0 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.