acron^
05-10-2006, 09:56 AM
I can't seem to extract the color information about a mesh, using Maya API.
I am iterating through polygons using MItMeshPolygon.
Then
// Colors
MColor colors[3];
// Get Color values for each vertex within this polygon
for ( int i = 0; i < 3; i++ )
{
piter.getColor( colors[i], vertexIdxs[i] );
}
The result is coming back '0,0,0,1' for RGBA respectively, every time.
I really can't see the problem! Please help!
I am iterating through polygons using MItMeshPolygon.
Then
// Colors
MColor colors[3];
// Get Color values for each vertex within this polygon
for ( int i = 0; i < 3; i++ )
{
piter.getColor( colors[i], vertexIdxs[i] );
}
The result is coming back '0,0,0,1' for RGBA respectively, every time.
I really can't see the problem! Please help!
