China
Member
Join Date:
Jun 2003
Posts:
76
Rep Power:
10
August 1, 20057:02 am
Maya API: how to create UVSets in data mesh
Hi,
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.
zhang
China
Member
August 2, 20057:13 am
Thanks for your help. Stilling trying to find a solution.