Message 1 of 1
issues in mesh color
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I use this codes to create a mesh with color, but these codes sometimes run not correctly. where is issues?
Maya Api 2024.
====
MObject inMesh = meshSrcHandle.asMesh();
MFnMeshData meshDataFn_orig;
MObject inMesh_source= meshDataFn_orig.create();
MFnMesh outMesh;
outMesh.copy(inMesh , inMesh_source);
MString createColor = outMesh.createColorSetWithName(colorSetName, NULL, NULL, NULL);
outMesh.setCurrentColorSetName(createColor);
status = outMesh.setVertexColors(vertexColorList, vertexIndexIds);