Hello friends,
i am desperatly searching for a Maya script that can batch export a set of selected meshes, as single objects as dae-fbx. Ideally while keepinh the mesh name.
I have a scene file with 50 + meshes that regularly need to be exported as separate objects.
Any help is greatly welcomed
Thanks a lot!
Replies
- import maya.cmds as cmds
-
- filepath = r"C:\Users\abraz\Desktop\PolycountScriptTest"
- selection = cmds.ls(sl=True)
- for obj in selection:
- cmds.select(obj)
- objExportPath = "%s\%s.dae" % (filepath,obj)
- cmds.file(objExportPath, type='DAE_FBX export', pr=True, force=True, exportSelected=True)
Can try something like that. Can try copying and pasting into a python script editor tab.