Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: PierreB on June 16, 2022, 10:15:52 PM

Title: Create chunk copy
Post by: PierreB 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
Title: Re: Create chunk copy
Post by: Alexey Pasumansky 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()
Title: Re: Create chunk copy
Post by: PierreB on June 17, 2022, 07:17:57 PM
Thanks. I forgot the () after .copy