View Full Version : MayaAPI: Getting color information..

05 May 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.


// 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 May 2006, 09: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.