Search code examples
pythonmayaalembicmel

Maya AbcExport with Python


I have the script to export an Alembic from Maya with MEL :

AbcExport(-frameRange 31 41 -writeVisibility -dataFormat ogawa -root |myChar:char|myChar:GEOchar -file E:/test.abc)

I would like to do the same with Python. Something like :

cmds.AbcExport(...)

I can't find any documentation about it... Any idea?

Thank you a lot!


Solution

  • You can find help for cmds.AbcExport and cmds.AbcImport by instantiating them with the h arg set to True. The following commands will print help docs:

    maya.cmds.AbcExport(h=True)
    maya.cmds.AbcImport(h=True)