I had a good look at this, and it looks to be quite the interesting quirk.
:)
Here’s the same problem in maya.cmds.
from maya import cmds
for x in range(2):
grp = cmds.group(em=True)
t = cmds.polySphere(n='test')[0]
assert isinstance(grp, unicode)
assert isinstance(t, unicode)
cmds.parent(t, grp)
Merely replacing polySphere with spaceLocator causes the error for me in
Maya 2015, and I have no idea why.
Good find!
--
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/CAFRtmODHPmSgwZkj-uh8%3DswwjnZjL9jR8wXXu0EvsEbXRXwp9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.