Jump to content
  • Advertisement
Sign in to follow this  
giugio

[maya]Control interface

This topic is 3750 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hy. I'm ready for start to create a plugin for maya. This is my question: Is possible to use gui interface(textboxes,buttons,combos)in mel(maya)? Thainks

Share this post


Link to post
Share on other sites
Advertisement
Thanks.
Then i can use mel in c++ for create gui?
And for c++ interaction with these controls(events and values can handle and read by c++?)

Share this post


Link to post
Share on other sites
Quote:
Original post by giugio
And for c++ interaction with these controls(events and values can handle and read by c++?)


Read this

No. You cannot do any GUI related code with C++ - it has to entirely within mel - and i literally mean all GUI code has to be written as a mel script!

That means you cannot create C++ event handlers, you cannot query or set GUI values by C++, you cannot create GUI via C++, you cannot delete the GUI via C++ - In short All GUI has to be done in mel script

If you need your mel GUI to talk to C++, then you can either create a new mel command (MPxCommand), create some file translator (MPxFileTranslator), a mouse driven tool (MPxContext), or some type of node (MPxNode). (Generally node's are the preferred method - ideally interacting properly within the DG)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!