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 <[email protected]> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to