Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 29-11-2007 , 05:06 AM
Registered User
Join Date: Nov 2007
Posts: 7

GUI's in MEL

Hi,

I need to develop a GUI which can manipulate objects through Maya. My main issue is that I don't want it to look like I'm just running a script in Maya; I want it to look like a stand-alone app that you can run without having any prior knowledge of Maya whatsoever. I was thinking of:

- Maya plug-in which opens a whole new maximized MEL window
- Separate GUI (C# or Java) which can call MEL commands on Maya (which is running in background)

Are either of these viable? As I said, I want someone to be able to open and use this app without having to play with Maya itself (it's a program for evolving 3D art).

And on a completely separate note, can MEL take a screenshot of the current 3D view?

Thanks.

# 2 29-11-2007 , 11:28 AM
djknucklez1's Avatar
Registered User
Join Date: Oct 2007
Location: San Francisco
Posts: 131

hmmm...

wow! that's very ambitious. Do you have prior experience using MEL scripting and C++ programing?


EA Games
# 3 29-11-2007 , 08:39 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
There's a few options open to you (and probably many more) if you already have programming skills or are willing to dive in at the deep end and try.

1) Hardcore way - Learn C++ and MEL (as djknucklez1 mentioned) and create a custom tool from scratch
2) Middle of the road depending on programming skills - Use a custom development toolkit that encapsulates a lot of the tedious and hard work into easy to use libraries. One I'm going to be looking at playing with real soon is wxwidgets https://www.wxwidgets.org/
I found this after looking into a cool looking re-topology program called topogun which is based on it. wxwidgets is flexible on what programming languages can be used but you'll still need to know one of them or to dive in at the deep end and start learning one.
3) Lower end but still requiring programming skills - Learn MEL/Python (depending on your version of Maya) and build a custom interface that sits within Maya. I did one of these in the summer for my flocking tool (see my sig). It uses Python and generates a new window with lots of input sections etc. It's worth grabbing a copy to see how some of the commands work and should be well commented.

If you decide to dive in then good luck
Simon


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 4 29-11-2007 , 09:33 PM
gster123's Avatar
Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
You could have a look into the MEL DEV kit thats bundeld with maya, it allows you to create a plug in for maya via Visual Studio and C++, theres samples and tutorials to get you going.


"No pressure, no diamonds" Thomas Carlyle
# 5 29-11-2007 , 09:40 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
Hi Steve,

Hope things are good user added image
hows it going with that by the way? have you managed to get a plugin going?

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 6 30-11-2007 , 01:26 AM
Registered User
Join Date: Nov 2007
Posts: 7
Hey again.

I know C++ but have just gotten started with MEL. Done a few simple GUI's and played around with commands in the references.

The app I'm going for might sound a bit more ambitious than it actually is. All I need is to execute a number of transformations on a primitive, display screenshots of that primitive, and save the transformations. Given what you've said, I think MEL is probably enough. Correct me if I'm wrong, but I could do something like this:

- Create a sphere
- Change its attributes (say move some of its vertices)
- Take a few screenshots with playblast from different angles (moving camera around)
- Keep track of the list of transformations done to the primitive
- Delete the primitive
- Draw a symbolButton which has the screenshot image on it
- Repeat process on another primitive, with different transformations

All these things I think you can do in MEL. This app will allow you to click on two of the symbolButtons (representing two different transformed primitives), and the script will take the transformations of the two selected objects and merge them into a new object.

The only question for me is, can I save the transformations done to an object, as a piece of text?

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads