PDA

View Full Version : Testing an Interface Making MEL Script


ajk48n
09-20-2003, 08:14 PM
Hi, I've been trying to write a MEL script that will make interfaces. It's still very early on, but I've gotten it to a point that it can at least do a couple things completely, and I would like to get feedback on how it's layed out, as well as any other suggestions.

www.geocities.com/ajk48n/Plugins

UI_UI.zip

There is one file in the zip: UI UI 3.mel

Just source it in Maya and it should run.

Three windows should come up:
Main, Control, and User.

Main is where you add layouts and items from.
Control is a list of everything you have added.
User is your window.

In this very basic stage the only item you can add that work properly are buttons. The layouts that will wokr nicely are row, column, grid, and frame. At this point, there's no error checking, so they have to be added correctly. For testing how it works try this:

Note: a scroll Layout has already been added.

Click on "Row". Notice a rowLayout button appear in the control Window.
Next click on "Column" This adds a column to the 1st part of the rowLayout.
Now click on "Button" Notice a button appear in the "Controls" Section.

In the control window, there is a part called "Parenting". By clicking on a button there, it sets the current parent.

Click on the rowLayout button.
Now add a "Grid".
Add a few more buttons.
You should see the buttons appear in a grid in the second section of your row Layout.

Click on rowLayout in the "Parenting" window again.
Next click on "Frame".
Next "Column".
Next add some more buttons.

Now to edit a button:
In the "Control" section there is a list of every button you have added. If you click on one, you will get a window popping up that has most of the properties for the current button.

To change the label, type something new in the label text field and press the enter button by the number pad. Try the check boxes for enabling the button, or making it visible. The width, height, and command text fields also work.

Any feed back is greatly appreciated about how the layout feels, or anything else.

Thanks in advance.

Suggestions and advice can also be sent to ffsmailing@yahoo.com

wrend
09-21-2003, 06:30 AM
looks nice ajk. havent had too much of a play yet, so i cant really give any feedback, though it would be really great to have some method of display that makes it very clear how the hierachy of controls work ... a text window would be fine even.

keep it going!

Firas
09-21-2003, 08:10 AM
nice .. maya needs something like this .. but am not sure how far u can go with it while its inside maya .. keep updating please because it realy can end as very usfull utility

ajk48n
09-21-2003, 06:20 PM
Thanks for the feedback.

wrend, I like the idea of having the parenting text based, I haven't been that happy with how that looks at the moment. I'll see what I can do.

CGTalk Moderation
01-16-2006, 04:09 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.