So i've come across an interesting problem. 
it seems maya can only select vertexes with color index 1.0 or 0.0. i 
cannot seem to get the code to select from any ranges inbetween. I've tried 
the other flags on the polyColorPerVertex and nothing seems to work.

as an example

import maya.cmds as cmds


sel = cmds.ls(sl=True)[0]
vNum = cmds.polyEvaluate(v=True)
vList = cmds.ls('pPlane1.vtx[:]', flatten = True)

for i in vList:
if cmds.polyColorPerVertex(i, q=True, r=True)==[1.0]:
cmds.select(i,add=True)

will select all the verts with color info 1.0

but

import maya.cmds as cmds


sel = cmds.ls(sl=True)[0]
vNum = cmds.polyEvaluate(v=True)
vList = cmds.ls('pPlane1.vtx[:]', flatten = True)

for i in vList:
if cmds.polyColorPerVertex(i, q=True, r=True)==[.456]:
cmds.select(i,add=True)

will give me nothing. 

Thank you

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9f8fd2fd-ffd9-4112-8a79-42ec1ce9399f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to