August 1, 20058:02 am
Maya API: how to create UVSets in data mesh
I am working on a plug-in node that generates mesh data.
meshFn.create( numvx, nump, avx, pc, pconn, outMeshData, &stat );
Then attach some UV info.
meshFn.setUVs( ua, va ); meshFn.assignUVs( polygoncounts, uvids );
That works fine to create the default UVset "map1". But when i use the code:
meshFn.setUVs( ua, va, &MString("foo") ); meshFn.assignUVs( polygoncounts, uvids, &MString("foo") );
No UVset created. Seems it failed to create any UVset named other than "map1".
The problem is how to create multiple UVsets in data mesh. I have searched this topic online, but got no luck. Any advice will be appreciated.
Thanks in advance.
August 2, 20058:13 am
Thanks for your help. Stilling trying to find a solution.