PDA

View Full Version : MayaAPI: Getting color information..


acron^
05-10-2006, 10: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!

CGTalk Moderation
05-10-2006, 10:57 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.