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?