Hi Reza,
The range() function accepts a 3rd parameter that defines the step amount.
Here is an example using
the commands module
selectBy = 2
total = len(cmds.getAttr("pSphere1.vtx[:]"))
for i in xrange(0, total, selectBy):
cmds.select('pSphere1.vtx[%d]' % i, add=True)
Hope that helps!
On Sat, Nov 26, 2011 at 1:28 PM, Reza Shahsavary <[email protected]>wrote:
> Hi All.
> I`d like to select component(Verts/Edge/Face)by skip one using python
> commands.
> could u assist me?
> thx
> Reza
>
> --
> 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