Skip to content

Instantly share code, notes, and snippets.

@yamahigashi
Created May 26, 2017 06:09
Show Gist options
  • Select an option

  • Save yamahigashi/439733db11cd8ace411a8da4b52d62e3 to your computer and use it in GitHub Desktop.

Select an option

Save yamahigashi/439733db11cd8ace411a8da4b52d62e3 to your computer and use it in GitHub Desktop.
import maya.mel as mel
import maya.cmds as cmds
import_command = "DoraSkinWeightImport( \"{name}.dsw\", $gDoraSkinWeightImpExp_ImpMode, 0, 1, 0.001)"
all = [x for x in cmds.ls(sl=True)]
for x in all:
cmds.select(x)
mel.eval(import_command.format(name=x))
cmds.select(all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment