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 - Vladimir Denisov

Pages: 1 ... 3 4 [5] 6
61
Python and Java API / Re: Chunk Region Control Script
« on: December 01, 2021, 05:04:38 PM »
I'm not good at scripting.

I have many scripts that load itself when i open Metashape and are added in a Custom Menu. (pic 1)
This way i open that menu and click the script i want to run.

Your script does not load automatically when i open Metashape. To make it appear in a custom menu i have to run it through console first. (pic 2).

Is it possible to make it to run automatically when i open Metashape? Can you modify it for me please?

Place script into %LOCALAPPDATA%\Agisoft\Metashape Pro\scripts\
How to do this:
  • Press Windows+R keyboard keys
  • Type: %LOCALAPPDATA%
  • Press OK
  • Folder opened
  • Open Agisoft\Metashape Pro\scripts\ folder
  • Copy script into this folder.

62
Bug:
Option "Reuse depth maps" (line <reuse_depth>false</reuse_depth>) is missing in job BuildModel when save tasks list as XML file.

Right behaviour:
<reuse_depth> must set to false.

How to reproduce:
  • Open Batch processing window
  • Create job Build Model
  • Set Reuse depth maps to No
  • Save task list as XML
  • Load task list from saved file
  • Check out value Reuse depth maps in Build Model job
  • Open XML file in notepad and search line <reuse_depth>false</reuse_depth>

63
Python and Java API / Chunk Region Control Script
« on: November 30, 2021, 06:59:44 PM »
Simple script for chunk region control. It move and scale to relative current transform. Agisoft, you can include it into your repository.

Get script  from GitHub Gist






64
Python and Java API / Python, Non modal window
« on: November 30, 2021, 12:06:57 PM »
  • How to create non modal window in Python?
  • Can I create toolbar and buttons on it? How?
  • Can I create dockable panel? how?
Code examples pls.



65
Feature Requests / Re: Process in progress box
« on: November 27, 2021, 03:11:29 PM »
Vote up.

Modal progress window not fine.

66
Feature Requests / Manuals
« on: November 27, 2021, 03:09:05 PM »
Please make Learn section on site where all manuals is html format (with table of content (tree view) on side and search).

67
This is still an issue in 1.7.2.


Guys, can't you just pause the process when the disk space is low?


How many disk space you have?
Have you another disk?
How many photos in project's chunk?

In my project now 20000 photos. We use M.2 SSD 500Gb disk as project's storage. How I solve problem with free space? i use region to make model's part, and when I need to make another part - I just make offset region position to half size in any axis (by script).

68
Feature Requests / Re: Multiple models
« on: June 07, 2021, 03:20:36 AM »
You can use show aligned chunks if you have models in multiple chunks, not ideal but it works :)


Yes, it working. I to make copies of main chunk and they already aligned. Thanks)

69
Feature Requests / Multiple models
« on: June 04, 2021, 08:47:08 AM »
Add the ability to display multiple models at the same time in the viewport.

70
Python and Java API / Re: Offset region to forward
« on: June 02, 2021, 11:33:31 AM »
I found multiply operation in matrix)


Code: [Select]

import Metashape
chunk = Metashape.app.document.chunk
# Store position
old_pos = chunk.region.center
# Get offset by x size
x_offset = Metashape.Vector([chunk.region.size.x, 0, 0])
# Rotate offset vector
new_x_offset = Metashape.Matrix.Rotation(chunk.region.rot).mulv(x_offset)
# Make offset of reconstruction regionchunk.region.center = old_pos + new_x_offset

71
Python and Java API / Offset region to forward
« on: June 02, 2021, 11:20:15 AM »
How to offset region to forward in region local coords to x units, where x is chunk.size.x of region? (Python)

72
Feature Requests / Python API in CHM format
« on: June 01, 2021, 04:34:36 AM »
Python API in CHM format more usable form for reading, navigation. Please make Python API manual in CHM.

73
Bug Reports / Documentation missmatch
« on: May 19, 2021, 08:27:52 AM »
Page 130 of https://www.agisoft.com/pdf/metashape-pro_1_7_ru.pdf

Выберите пункт Плавное выделение... в меню Редактировать.

But in CHM manual (from Help menu)

Select Gradual Selection... command from the Model menu.

74
Feature Requests / Re: Remove not pinned markers (blue)
« on: May 16, 2021, 09:18:59 PM »
https://www.agisoft.com/forum/index.php?topic=10969.msg49466#msg49466

There is a script to remove all the blue flags.

fixed


import Metashape

Code: [Select]
for chunk in Metashape.app.document.chunks:
    for marker in chunk.markers:
        for camera in list(marker.projections.keys()):
            if not marker.projections[camera].pinned:
                marker.projections[camera] = None

75
Feature Requests / Remove not pinned markers (blue)
« on: May 08, 2021, 09:44:18 AM »
Add menu for removing not pinned markers (for selected marker) on all project or in selected images.

Pages: 1 ... 3 4 [5] 6