Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Last active January 3, 2016 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GRGSIBERIA/8525728 to your computer and use it in GitHub Desktop.
Save GRGSIBERIA/8525728 to your computer and use it in GitHub Desktop.
import maya.cmds
maya.cmds.loadPlugin("C:/Users/EIICHI/Documents/GitHub/mmd-transporter/main.py")
poly = maya.cmds.createNode('transform')
mesh = maya.cmds.createNode('mesh', parent=poly)
maya.cmds.sets(mesh, add='initialShadingGroup')
spoly = maya.cmds.createNode('transportedMMD1')
maya.cmds.connectAttr(spoly + '.outputMesh', mesh + '.inMesh')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment