Forum

Author Topic: Create chunk copy  (Read 1408 times)

PierreB

  • Newbie
  • *
  • Posts: 14
    • View Profile
Create chunk copy
« on: June 16, 2022, 10:15:52 PM »
Hi. I'm having trouble making a copy of the chunk in my project. I'm using the following:
chunk2 = chunk.copy
project.save
But when I reopen the project in the GUI, chunk2 is not visible.
Can you help?
Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Create chunk copy
« Reply #1 on: June 17, 2022, 01:20:03 PM »
Hello Pierre,

Do you use it in the following way?

Code: [Select]
chunk = project.chunk #project is an existing Metashape.Document class element
chunk2 = chunk.copy()
project.save()
Best regards,
Alexey Pasumansky,
Agisoft LLC

PierreB

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Create chunk copy
« Reply #2 on: June 17, 2022, 07:17:57 PM »
Thanks. I forgot the () after .copy