Jump to content
  • Advertisement
Sign in to follow this  
Gruik1

[RESOLVED] Use Maya import plugin with MEL

This topic is 3786 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

Hi people, I'm new here and I don't know if it is the right part of the forum for my problem but I didn't find where to post about Maya and MEL. This said, let's go to the reason of this post. I have a large amount of Collada meshes to convert to ".egg" (Panda3D format). As there is no converter Collada->egg, I use Maya to import the meshes with ColladaMaya (Feeling Software plugin) and then export them with a tool provided with Panda (maya2egg). If I do these 2 steps manually, there is no problem, but I have more thant 200 meshes to convert and more coming. So I want to create a Python script which will take a directory and apply these steps to each mesh in this directory : 1) import the Collada mesh in Maya using ColladaMaya plugin and MEL 2) save the imported model in ".mb" 3) call maya2egg on the result of the second step I have no problem for the step 3, I don't think the 2nd will be hard. But I don't find how to do the first step. I can use any MEL command from Python with the maya module but I don't see how to use an importer plugin. Does anybody have an idea of the way to do this ? [Edit] I found the way to open, save, rename files : maya.mel.eval("file -action_to_do full_path") There is an "import option" but when I try to import a collada file, it doesn't recognise it. [/Edit] Thanks Benjamin [Edited by - Gruik1 on March 10, 2008 7:04:38 AM]

Share this post


Link to post
Share on other sites
Advertisement
For those who are interested, I had a response on the CGTalk forum. Yeah I tried on different forums because I was desperate, but now I'm good :-)
Thread's here :

http://forums.cgsociety.org/showthread.php?f=89&t=605391

Strarup makes the MEL script for Maya and it works great. And thanks to this I understood all I needed and can complete my Python script.

Have a nice day
Benjamin

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!