Forum

Author Topic: Get chunk name  (Read 2913 times)

fabvin

  • Newbie
  • *
  • Posts: 22
    • View Profile
Get chunk name
« on: January 20, 2016, 03:35:36 PM »
Dear all
I am wondering if it is possible to get the name of a chunk in a project, when running a loop on :

For example:

doc = PhotoScan.app.document
for chunk in doc.chunks:
      ??? chunk.name ???

Best regards

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Get chunk name
« Reply #1 on: January 20, 2016, 03:47:28 PM »
Hello fabvin,

Code: [Select]
for chunk in doc.chunks:
      print(chunk.label)
Best regards,
Alexey Pasumansky,
Agisoft LLC