Forum

Author Topic: Reload-Refresh python scripts  (Read 3499 times)

AndreaR70

  • Newbie
  • *
  • Posts: 7
    • View Profile
Reload-Refresh python scripts
« on: June 02, 2021, 12:32:31 PM »
Hello,

There is a way to reload-refresh from console the python scripts list stored in: C:\Users\USER\AppData\Local\Agisoft\Metashape Pro\scripts, without close and reopen Metashape?
This trick would be usefull when i edit the script directly in the scripts folder and  test it quikcly without close Metashape, reopen it and reload a project!

Thanks in advanced

Andrea

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15173
    • View Profile
Re: Reload-Refresh python scripts
« Reply #1 on: June 02, 2021, 01:11:06 PM »
Hello Andrea,

For testing purposes you can use Tools Menu -> Run script command to start the modified script.
Best regards,
Alexey Pasumansky,
Agisoft LLC

AndreaR70

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Reload-Refresh python scripts
« Reply #2 on: June 02, 2021, 01:27:29 PM »
Thanks Alexey

Regards

Andrea

Seboon

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: Reload-Refresh python scripts
« Reply #3 on: June 04, 2021, 08:40:48 AM »
Hey Andrea,

Some time ago, I've made a script for the same purpose.

Have a look here :
https://github.com/Seboon/Metashape_ScriptReloader

Hope it will fill your needs!

Best regards

S.Poudroux
Archaeologist - Topographer - Drone remote pilot