I think you'll have to explain me (us?) what you mean by “direct way”. In fact, what makes you think that this approach is not “direct”? What do you expect by making it more “direct”?
If using a list/set as mentioned earlier, you'll simply retrieve some data from Maya and cache it in memory once for all. To me it's much more direct than having to create all these objects as you currently do it in your function, and worse, having to manipulate the selection list whenever you want to add new components. On 11 September 2016 at 22:09, Jean Noval <[email protected]> wrote: > Yes I could do that, select the edges in my functions. > But there is no other direct way ? > > -- > 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/cfccff47-61ad-49d6-8368- > a1952026ca57%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/cfccff47-61ad-49d6-8368-a1952026ca57%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *http://christophercrouzet.com* <http://christophercrouzet.com> -- 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/CANuKW52Tp5Ac8o9T_TenOSAMjjm0AsLXucWV1Dpeckm73OyLOg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
