Forum

Author Topic: Mass transforming markers  (Read 4257 times)

cadm8

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Mass transforming markers
« on: January 20, 2019, 06:41:56 PM »
Hello to everybody. Is there a way to mark a few photos with the relevant GCP, then press update and then transform every other marker in the photoset (after selecting filter by markers) from blue flags to green ones? Most of the times marking 5-10 photos is enough for small datasets so I was wondering if it is possible to mass mark the rest of the markers too.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Mass transforming markers
« Reply #1 on: January 20, 2019, 10:22:03 PM »
Hello cadm8,

You can change the status of all markers' projections from unpinned (blue flags) to pinned (green flags) with the Python script:
Code: [Select]
import Metashape
chunk = Metashape.app.document.chunk
for marker in chunk.markers:
    for camera in marker.projections.keys():
        marker.projections[camera].pinned = True
Best regards,
Alexey Pasumansky,
Agisoft LLC

cadm8

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: Mass transforming markers
« Reply #2 on: January 22, 2019, 02:35:16 AM »
Thank you Alexey, very helpful as always!

Robert Dzur

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Mass transforming markers
« Reply #3 on: April 11, 2019, 01:52:02 AM »
Hi Alexey,

Is it possible to modify this code to mass transform all markers in the project from (grey) directly to green (pinned) with projections on all photos in which the markers occur.  If so, could you possibly share how this code might be modified to accomplish that?

Thank you.

Robert

denisuwardhi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Mass transforming markers
« Reply #4 on: September 29, 2023, 05:42:06 PM »
Hi Robert,

Do you have the solution for the problem?