Hi,
I've been working on importing and exporting custom colors set per vertex. If I use the paintvertex tool a new colorset is created (e.g. colorSet[0]). When I try to read these all I get is 0 0 0.
Here's how I tried doing this:
getAttr shape.colorSet[0].vertexColor[0].vertexColorRGB;
...
getAttr pCube1.colorPerVertex.vertexColor[2].vertexColorRGB
0 0 0 no mattter what's really in there.
I can't see any changes either if I apply setAttr on these ones.
I know I can use
select shape.vtx[0:vtxNum]
[b]polyColorPerVertex -q -r -g -b;
[/b]for queries and
for ($i=0; $i < $sz; $i++) {
select shape.vtx[$i];
polyColorPerVertex -rgb $r $g $b;
}
for setting but this must be horribly slow and I'd prefer to use setAttr on a range instead.
Could you please tell me which way to access the real per-vertex color information?
Thanks.