Forum

Author Topic: Metashape 1.6 exportTexture  (Read 4141 times)

mtbouchard

  • Newbie
  • *
  • Posts: 10
    • View Profile
Metashape 1.6 exportTexture
« on: October 05, 2020, 09:58:11 AM »
Hi!

Looking for how to export only the generated UV texture (as an 8k, and want a .tif file) in Metashape  1.6

Old docs show:

   chunk.model.saveTexture(my_path)
RuntimeError: Can't save texture: <my_path>

I don't see an exportTexture method either.

What am I missing?

Thank you.

Matt

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15354
    • View Profile
Re: Metashape 1.6 exportTexture
« Reply #1 on: October 05, 2020, 10:59:20 AM »
Hello Matt,

You can access the texture image and save it in the following way:
Code: [Select]
texture_image = chunk.model.textures[0].image()
texture_image.save("D:/texture.tif")
Best regards,
Alexey Pasumansky,
Agisoft LLC

mtbouchard

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Metashape 1.6 exportTexture
« Reply #2 on: October 05, 2020, 07:18:18 PM »
Ah! This makes sense!  Thank you Alexey.

Many changes in 1.6 but honestly, I find it much cleaner and results better. Thank you! 

Matt