Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - AndreaR70

Pages: [1]
Python and Java API / Reload-Refresh python scripts
« on: June 02, 2021, 12:32:31 PM »

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



When I load a set of photos of the Mavic pro 2 Hassemblad (camera model L1D-20c) Metashape racognize the camera model as Test_Pro whithout calibration parameters! Is normal?



Python and Java API / Vector coordinates center project to txt
« on: June 01, 2021, 03:16:06 PM »
Hi all,

Excuse me for the question but i'm not very able with python!

I got the vector coordinate (UTM32) with this part of scipt converted in string:

Code: [Select]
doc =
chunk = doc.chunk
cor = str ( (chunk.transform.matrix.mulp (
print (cor)

I can see in output this:
Vector ([519249.1224876235, 5040138.770116413, 131.04726993710898])

Now i would to transform the output without the characters "Vector (]" decimals and commas to this exactly string:

519249.000 5040138.000 131.000

and finally print the result to txt file

Anyone can help me to complete the script

Thanks in advanced


Python and Java API / Unselect (deselect) points
« on: September 28, 2018, 05:31:08 PM »
Hi all,

Sorry, but i'm newby in command scripting, and trying to modify an old script.

Suppose that i've selected some points in a point cloud, what is the script to write for unselect (deselect) all the point previous selected?

Thanks in advanced

Pages: [1]