Use the flatten flag. Cmds.ls (flatten=True) I would suggest looking into the maya commands documentation. On May 8, 2014 4:13 PM, <[email protected]> wrote:
> How to expand ranges returned by maya ls command ? > e.g I want to convert u'SomeShape.e[0:100]' to u'SomeShape.e[0]', > u'SomeShape.e[1]', u'SomeShape.e[2] e.t.c' > > -- > 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/330f7455-7406-42e8-a51c-25631baae0fa%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAM9RXoK6LPJ90H7oUWR%3DS03zQoZiCh9r8hS%2BCYfO12evU3Yv9g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
