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 29-11-2007, 05:06 AM   #1
wjpiovano
Registered User
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
wjpiovano is offline   Reply With Quote
Old 29-11-2007, 11:28 AM   #2
djknucklez1
Registered User
 
djknucklez1's Avatar
 
Join Date: Oct 2007
Location: San Francisco
Posts: 131
Thanks: 0
Thanked 1 Time in 1 Post
Default hmmm...

wow! that's very ambitious. Do you have prior experience using MEL scripting and C++ programing?
__________________
EA Games
djknucklez1 is offline   Reply With Quote
Old 29-11-2007, 08:39 PM   #3
t1ck135
Registered User
 
t1ck135's Avatar
 
Join Date: May 2004
Location: UK
Posts: 1,991
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 http://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
t1ck135 is offline   Reply With Quote
Old 29-11-2007, 09:33 PM   #4
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

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
gster123 is offline   Reply With Quote
Old 29-11-2007, 09:40 PM   #5
t1ck135
Registered User
 
t1ck135's Avatar
 
Join Date: May 2004
Location: UK
Posts: 1,991
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Steve,

Hope things are good
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
t1ck135 is offline   Reply With Quote
Old 30-11-2007, 01:26 AM   #6
wjpiovano
Registered User
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
wjpiovano 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.