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.


Topics - Michel

Pages: [1]
1
Python and Java API / Deleting empty camera groups
« on: June 21, 2022, 01:39:00 PM »
Hello everyone,

I am looking for a method to delete empty camera groups automatically. From a practical point of view, I know that we need to create a list of group we want to remove, then use the chunk.remove() function. However, the Metashape.CameraGroup class doesn't have a function to know if the group is empty or not. Do you have any idea how to do this?

Thank you,
--
Michel

2
General / Creating an animation track from a polyline
« on: June 02, 2022, 02:12:17 PM »
Hello everyone,

I would like to know if it is possible to create a camera track from a polyline via a Python script ?

While searching, I found the following topic (https://www.agisoft.com/forum/index.php?topic=11313.0) which gives a script allowing to create a path passing by all the cameras of a project. I imagine the basis of the script would be similar, but I'm having trouble getting from a line, to points and then keyframes.

The aim of the script would be to create n keyframes per line (by distance or % criteria) with an orientation either by default or directed to the next point. Adjustments will be made manually before rendering.

Thanks in advance for your help,

3
General / History of the functions applied to a project
« on: February 26, 2022, 05:25:56 PM »
Hello everyone,

I am programming a python script to export some metadata from a project in .txt format. After studying the python API, I have managed to access the various metadata dictionaries of the Tie point cloud, dense cloud, model, etc. In order to have the most accurate history of the functions applied to a project, I wanted to know if it was possible to access to a history of the tools functions used. For example, if I have applied the "decimate mesh" function to a 3D model, can I find a log of the application of this function somewhere?

Thanks a lot in advance,
Michel

4
General / Texture metadata access problem
« on: February 26, 2022, 05:10:37 PM »
Hello everyone,

I am programming a python script to export some metadata of a project in .txt format. After studying the python API, I managed to access the different metadata dictionaries of the Tie points cloud, dense cloud, model, etc. However, when I access the 3D model metadata, none of them refer to the BuildTexture function, only BuildModel and BuildUV. Furthermore, when I select my model, the GUI shows me the parameters used for the BuildTexture function. I conclude that the texture metadatas are present, but I can't access them.

How can I access these metadata?

I specify that I did create a texture for a 3D model and that the command Metashape.app.document.chunk.model.Texture.meta returns None. Furthermore, the Metashape.app.document.chunk.model.Texture command returns something so the texture is present.

Thanks a lot in advance,
Michel

5
Feature Requests / Camera group improvement
« on: February 26, 2022, 04:50:43 PM »
Hello,

I work most of the time on projects with more than 5,000 photos and the camera group function is very useful for the management and organisation of my data. However, after using it for a while, I realised that it could be improved a little bit. Indeed, would it be possible :

  • to add the possibility to create several camera groups at the same time instead of creating them one by one by clicking on the camera tab. This could be done through a user input of the number of folders to create.
  • to have the possibility to create camera groups by clicking on the chunk tab and not on the camera tab. At present, the main "camera" folder must be created to create camera groups.

Pages: [1]