Message 1 of 6

Not applicable
11-15-2016
01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the code below, where I create a mesh, and try to set UVs
MFnMesh fnMeshCreator;
MObject meshMObj = fnMeshCreator.create(uniquePositionsList->Count, mesh->Triangles->Count, mPointArray, polygonCounts, polygonConnects, meshTransformObj); MFnMesh fnMesh(meshMObj); fnMesh.clearUVs(); if (fnMesh.setUVs(uArray, vArray) == MStatus::kFailure) { cerr << "Always comes in here" << endl; }
However, it always returns MStatus::kFailure when attempting to setUVs
Anyone know why?
Thank you
Solved! Go to Solution.