Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created July 30, 2015 18:11
Show Gist options
  • Save tokejepsen/98d67dd8b965c16811bb to your computer and use it in GitHub Desktop.
Save tokejepsen/98d67dd8b965c16811bb to your computer and use it in GitHub Desktop.
multi fbx export
import os
import maya.cmds as cmds
path = cmds.fileDialog2(dialogStyle=1, fileMode=3)
if path:
path = path[0]
sel = cmds.ls(selection=True)
for node in sel:
cmds.select(cl=True)
cmds.select(node)
filename = os.path.join(path, '%s.fbx' % node)
cmds.file(filename, force=True, typ="FBX export", es=1)
cmds.select(sel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment