Isotropix Forums

Get wrong length of uv map indices

Clarisse Scripting related topics

Get wrong length of uv map indices

Unread postby FhyTan » Wed Aug 03, 2022 8:23 am

Hello guys, I'm using Clarisse iFX 5.5 Early Access 2 and trying to do some TD work about exporting mesh and uv. When I export uv data, I found there are some object that the length of uv indices is not equal with the length of the face vertex count. It cause some problem in my subsequent work.

Here is the problem object in attachment which I download from tutorial video. And the python script show how I fetch the uv data.

Code: Select all
item=ix.get_item('build://project/scene/Light_Ground_obj')
geo=item.get_module().get_geometry()

faceVertexCount = ix.api.UIntArray()
geo.get_polygon_vertex_count(faceVertexCount)
print(sum(faceVertexCount)) # get 488

uvs=ix.api.GMathVec3fArray()
indices=ix.api.UIntArray()
geo.get_uv_map_data(0, uvs, indices)
print(len(indices)) # get 498


I've tried to import this obj in Maya, and I can get the length of uv indices is 488, not 498 in clarisse.
So is that a bug in clarisse or am I use a wrong method to do this?
Hope somebody can help me. Thank you
Attachments
Light_Ground.zip
(5.64 KiB) Downloaded 6 times
FhyTan
 
Posts: 1
Joined: Wed Aug 03, 2022 7:52 am

Return to Scripting