Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: AndreaR70 on June 02, 2021, 12:32:31 PM

Title: Reload-Refresh python scripts
Post by: AndreaR70 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
Title: Re: Reload-Refresh python scripts
Post by: Alexey Pasumansky 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.
Title: Re: Reload-Refresh python scripts
Post by: AndreaR70 on June 02, 2021, 01:27:29 PM
Thanks Alexey

Regards

Andrea
Title: Re: Reload-Refresh python scripts
Post by: Seboon 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 (https://github.com/Seboon/Metashape_ScriptReloader)

Hope it will fill your needs!

Best regards