Skip to content

Instantly share code, notes, and snippets.

@AndresMWeber
Created April 3, 2017 01:47
Show Gist options
  • Save AndresMWeber/d85c9bb84b6f4a07f093376321899556 to your computer and use it in GitHub Desktop.
Save AndresMWeber/d85c9bb84b6f4a07f093376321899556 to your computer and use it in GitHub Desktop.
Return imported top nodes from maya.cmds import
import maya.cmds as mc
file = "D:/dev/procedural_rigging/assets/komodo/model/komodo_model.mb"
new_nodes = mc.file(file, i=True, returnNewNodes=True)
print cmds.ls(new_nodes, assemblies=True)[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment