Hi people,
I still have a large amount of Collada meshes to convert to “.egg” (cf. my posts on 3DsMax ). I use Maya to import the meshes with ColladaMaya (Feeling Software plugin) and then export them with maya2egg. (I work on Maya 2008).
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 :
- import the Collada mesh in Maya using ColladaMaya plugin and MEL
- save the imported model in “.mb”
- 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