Forum

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.


Messages - AndreaR70

Pages: [1]
1
Python and Java API / Re: Reload-Refresh python scripts
« on: June 02, 2021, 01:27:29 PM »
Thanks Alexey

Regards

Andrea

2
Python and Java API / 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

3
Hello,

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?

Thanks

Andrea

4
Python and Java API / Re: Vector coordinates center project to txt
« on: June 01, 2021, 08:33:00 PM »
Hello Alexey

Many thanks
Is exacltly what i wanted!

Andrea

5
Python and Java API / Re: Vector coordinates center project to txt
« on: June 01, 2021, 06:26:59 PM »
Thanks Paulo and Alexey

It works with both scripts!
There is a way to add .000 for any vector coordinates for have this output?

519249.000 5040138.000 131.000

Andrea

6
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 = Metashape.app.document
chunk = doc.chunk
cor = str (chunk.crs.project (chunk.transform.matrix.mulp (chunk.region.center)))
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

Andrea

7
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]