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
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
