Forum

Author Topic: Script to import scale bar between markers?  (Read 8151 times)

tournevase

  • Newbie
  • *
  • Posts: 3
    • View Profile
Script to import scale bar between markers?
« on: November 23, 2023, 01:43:40 PM »
Hello,
"Script to import scale bar between markers?" is a early post dated 2020 ( https://www.agisoft.com/forum/index.php?topic=11083.msg50188 )
the script of alexey is here https://www.agisoft.com/forum/index.php?action=dlattach;topic=11083.0;attach=12510
it is said that
"The CSV file for the script should contain the scale bar label and distance in each line (with "tab" delimiter).
The label should contain labels of the corresponding marker separated with "_" symbol.
But if necessary, you can use any custom CSV format, you just need to adjust the lines related to the file scanning."
this is not comprehensive for me
could i have an example of the text to write in the file and if the file must be .txt or .csv
thank

tournevase

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Script to import scale bar between markers?
« Reply #1 on: November 23, 2023, 07:51:09 PM »
i add that the first Opens load txt file dialog "Please select import txt file with scale bars:" do not open nor "Script started..."
with data like     M130_M080   4.52     or other tests i get only "not enough values to unpack (expected 2, got 1)  :(