For example, I have 5 polygons in my scene.. Individual pieces in the
following hierarchy:
- abs_geo
- std_geo
- nor_geo
- stz_geo
- poly_geo
If I shift-select from the first node to the last node, abs_geo to poly_geo
and I run the following line:
cmds.ls(sl = True)
# Result: [u'abs_geo', u'std_geo', u'nor_geo', u'stz_geo', u'poly_geo'] #
However, say if I run the following command:
cmds.select("*_geo")
cmds.ls(sl = True)
# Result: [u'abs_geo', u'nor_geo', u'poly_geo', u'std_geo', u'stz_geo'] #
The latter part have sorted out my result in alphabetical order. Is there
anyway in which I can still make use of the latter method but while
maintaining the output result to be the same as the first (non-alphabetical
order)? Is this possible?
--
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/2fd491d1-8fa5-4c05-8ad8-fcb5bae661a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.