Forum

Author Topic: Export textures only  (Read 6201 times)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Export textures only
« Reply #15 on: February 21, 2017, 12:58:59 PM »
Hello Thibaud,

If you need to save the texture from the active chunk, you need to use:

Code: [Select]
chunk = PhotoScan.app.document.chunk
chunk.model.saveTexture(path_tex)

You are trying to use .saveTexture() method on PhotoScan.Model() class and not on the object of that class.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Thibaud Capra

  • Full Member
  • ***
  • Posts: 101
  • Master Student in Geodetic Engineering & Surveying
    • View Profile
    • INSA de Strasbourg, Topography Engineering (French)
Re: Export textures only
« Reply #16 on: February 21, 2017, 03:08:34 PM »
Hello Alexey,

Thanks, it's working now.

I finished the rest of the code, using your advice of using print for debugging, everything's ready and already running!

Thanks a lot
Best regards.
--
Thibaud CAPRA
Master Student in Geodetic Engineering, Cartography & Surveying
Master Thesis in Automated Processing of UAV-based Photogrammetric Data (ResearchGate Link)
INSA de Strasbourg, FRANCE
--