Forum

Author Topic: Python Scripting and multiple textures  (Read 193 times)

edz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Python Scripting and multiple textures
« on: July 30, 2018, 10:28:02 PM »
In the python scripts, how are we supposed to know which face-vertex maps to which texture index (when using multiple textures).
I use chunk.buildUV(count=4) for example, and chunk.model.texture(page=index) work well. But when looking at the faces with chunk.model.faces, I can get the tex_vertices, which works well for a single texture. But I think the texture index is missing, I suggest adding something like chunk.model.faces[].tex_index to indicate the texture associates with that specific face.



Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9263
    • View Profile
Re: Python Scripting and multiple textures
« Reply #1 on: August 01, 2018, 03:15:29 PM »
Hello edz,

I think will add the access to the texture atlas page in the next version update. I assume it would be a property of the polygon (face) itself.
Best regards,
Alexey Pasumansky,
AgiSoft LLC

edz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Python Scripting and multiple textures
« Reply #2 on: August 01, 2018, 04:22:41 PM »
I think will add the access to the texture atlas page in the next version update. I assume it would be a property of the polygon (face) itself.

Yes, that would be great, thanks. A simple index in the Face would be perfect, something like chunk.model.faces[].tex_index