SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / creating a MEL interface
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 03-05-2005, 11:28 PM   #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, 12: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, 09: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, 15 views)
Dann is offline   Reply With Quote
Old 31-05-2005, 09: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 02-06-2005, 11:18 PM   #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
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.