Forum

Author Topic: remove and clear chunk.markers dosen't seem to work  (Read 1487 times)

3DWinter

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
remove and clear chunk.markers dosen't seem to work
« on: March 25, 2021, 05:55:39 AM »
Hello,
I cannot remove specific markers from chunks.
Here is what I tried:
Code: [Select]
chunk.markers.remove(chunk.markers[18])But when I run again:
Code: [Select]
chunk.markers

[<Marker '113'>,
 <Marker '111'>,
 <Marker 'point 3'>,
 <Marker 'point 4'>,
 <Marker '110'>,
 <Marker 'point 6'>,
 <Marker 'point 7'>,
 <Marker 'point 8'>,
 <Marker 'point 9'>,
 <Marker 'point 10'>,
 <Marker 'point 11'>,
 <Marker 'point 12'>,
 <Marker 'point 13'>,
 <Marker 'point 14'>,
 <Marker 'point 15'>,
 <Marker 'point 16'>,
 <Marker 'point 17'>,
 <Marker 'point 18'>,
 <Marker 'point 19'>][/code
As can be seen  <Marker 'point 19'>  18'th on the list was not deleted.

[code]chunk.markers.clear()
Dosen't clear the list.

I assume I am doing something wrong, what?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13913
    • View Profile
Re: remove and clear chunk.markers dosen't seem to work
« Reply #1 on: March 25, 2021, 05:37:07 PM »
Hello 3DWinter,

You should call chunk.remove(chunk.markers[18]) to delete a specific marker, or chunk.remove(chunk.markers) to remove all markers from the chunk.
Best regards,
Alexey Pasumansky,
Agisoft LLC