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
Use Maya import plugin with MEL
Started by Gruik, Mar 07 2008 10:09 AM
1 reply to this topic
#1
Posted 07 March 2008 - 10:09 AM
#2
Posted 10 March 2008 - 12:05 PM
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.cgsoci...p?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
Thread's here :
http://forums.cgsoci...p?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
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











