Forum

Author Topic: I want to get a marker  (Read 2711 times)

Natsumi

  • Newbie
  • *
  • Posts: 12
    • View Profile
I want to get a marker
« on: August 24, 2021, 03:49:56 AM »
Hello everyone,

I want to get a marker.
Although it is described as follows, the obtained list is empty.
How can I get it?

Code: [Select]
m = []
for item in chunk.markers:
        m.append(item)
print(m)

Paulo

  • Hero Member
  • *****
  • Posts: 1352
    • View Profile
Re: I want to get a marker
« Reply #1 on: August 24, 2021, 10:40:55 AM »
Natsumi,,

maybe you can check if chunk is correctly defined  (chunk = Metashape.app.document.chunk)

also are there any markers in your chunk? if not you can add one....in markers window of reference pane....
Best Regards,
Paul Pelletier,
Surveyor

Natsumi

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: I want to get a marker
« Reply #2 on: August 25, 2021, 04:50:48 AM »
Hi Paulo,

That was exactly right.
I had to redefine the chunk after saving it with a name.
I didn't do that.

Thank you for your kindness.