selObjs = cmds.ls(sl=True)
srcVts = cmds.ls('%s.vtx[:]' % selObjs[0], fl=True)

* and : are interchangeable here, but the : is more natural to me in
python since it looks exactly like a list slice:

print srcVts[1:5]


On Fri, Aug 24, 2012 at 9:26 AM, Kurian O.S <[email protected]> wrote:
> srcVts=mc.ls((selObjs[0]+'.vtx[*]'),fl=True)
>
> in mel you passing * in " and in python its already inside ' :)
>
>
> On Fri, Aug 24, 2012 at 7:23 AM, zevs92 <[email protected]> wrote:
>>
>> selObjs=mc.ls(sl=True)
>> srcVts=mc.ls((selObjs[0]+'.vtx["*"]'),fl=True
>
>
>
>
> --
> --:: Kurian ::--
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to