Sign in to follow this  
Gruik1

[RESOLVED] Use Maya import plugin with MEL

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this