Well, as a quirk, it’s interesting (and odd), but as for a solution, I’d
mirror what Chris is saying about simply using unique names, and not rely
on the (apparently obscure) auto-naming feature of Maya for anything going
into production.
Something like this should do it.
for x in range(10):
grp = pm.group(em=True)
t = pm.spaceLocator(n='test_%s' % x)
pm.parent(t, grp)
But surely (hopefully) you’ve got better intentions that to use test and an
arbitrary number as object name. But that’s just me. :)
--
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/CAFRtmOBG_e7sqGWprhPFr4BNHOU0gXXcGR8t5QcNhATVUDKb0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.