I spoke too soon - still getting a crash when I'm selecting .sme[*][*] in my own code, even with a refresh. Unfortunately, I'm not sure what the key difference between it and the test case I already posted is...
- Paul On Fri, Jun 5, 2009 at 9:20 PM, Paul Molodowitch<elron...@gmail.com> wrote: > Yup, no more crash. Thanks for the workaround! > > - Paul > > On Fri, Jun 5, 2009 at 4:39 PM, John Creson<johncre...@gmail.com> wrote: >> I just took another look at the initial construct with an emphasis on the >> "avoid" question... >> >> >> import maya.cmds as cmds >> import maya.utils as utils >> >> polyCube = cmds.polyCube()[0] >> subd = cmds.polyToSubdiv(polyCube)[0] >> cmds.refresh() >> cmds.select(subd + '.sme[*][*]') >> >> print(cmds.ls(sl=True)) >> >> >> >> the refresh seems to avoid this crash. >> >> Or in MEL (which also crashed without the refresh) >> >> string $polyCube[] = `polyCube`; >> string $subd[] = `polyToSubdiv $polyCube[0]`; >> refresh; >> select -r ($subd[0] + ".sme[*][*]") >> ls -sl >> >> Paul, is this acceptable to you for now? >> >> >> On Fri, Jun 5, 2009 at 5:18 AM, Dimitry <dima.archit...@gmail.com> wrote: >>> >>> but if I trying to select unordered vertexes i got crash >>> >>> #unitMesh= ls(selection=True)[0] >>> mc.select(clear=True) >>> select (unitMesh.vtx[6422:6429], add=True) >>> select (unitMesh.vtx[3273:3275, 3278:3279, 3282:3283, 3285], add=True) >>> >>> nows somebody how possible to avoid it? >>> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---