when using the “return new nodes” flag
Aah, I didn’t know there was such a thing! That’s perfect.
For a completeness,
new_nodes = cmds.file("MyCube.mb", i=True, returnNewNodes=True)print
cmds.ls(new_nodes, assemblies=True)[0]# MyCube
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODbqDOzq3UM5Tp16aJ01BxxZVvA39g6PgCYWLCO20MAmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.