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

Pages: [1]
1
Python and Java API / Re: Get "Apply to" list of chunks in batch process
« on: February 28, 2020, 01:27:37 PM »
Hi again Alexy,

I'm having trouble with the selected attribute, it's always returning false when I run it through the batch process...

Code: [Select]
import Metashape

doc = Metashape.app.document

for chunk in doc.chunks:
print(chunk.label + ": " + str(chunk.selected))

Code: [Select]
RunScript: path = d:\metashape\custom-scripts\selectionTest.py
2020-02-28 10:26:46 Landscape Pos1: False
2020-02-28 10:26:46 Landscape Pos2: False
2020-02-28 10:26:46 Landscape Pos3: False
2020-02-28 10:26:46 Portrait Pos3: False
2020-02-28 10:26:46 TextureTest: False
2020-02-28 10:26:46 Alignment Test (not work): False
2020-02-28 10:26:46 Alignemtn Test (should work): False
2020-02-28 10:26:46 Finished processing in 0.018 sec
2020-02-28 10:26:46 Finished batch processing in 0.018 sec (exit code 1)

EDIT: Wait, sorry, I just re-read your post. The chunk.selected value DOES work when I highlight multiple chunks in the workspace (ctrl+click on each one)

But what I want is the ability to use the "apply to -> selection" option from the batch process window.

2
Python and Java API / Re: Get "Apply to" list of chunks in batch process
« on: February 28, 2020, 11:56:03 AM »
Gotcha! Cheers Alexey!

EDIT: Just one thought... how do I know if I should check the "chunk.selected" value? Like if they use the "active chunk" will only the active chunk return "chunk.selected = true"?

3
Python and Java API / Get "Apply to" list of chunks in batch process
« on: February 25, 2020, 07:55:44 PM »
Hi,

I'm writing a couple of python scripts and I've noticed I don't appear to be able to get the list of selected chunks in the "apply to" option when creating a job.

At the moment my script runs differently from the other batch processes (like 'align photos')  because it runs on all chunks, all the time, rather than being able to choose based on this option.

Do you have any boiler plate code I can add to my script to detect "unprocessed chunks" or the list chosen from the "selection"?

Cheers,
Roy

4
General / Aligning additional photo
« on: February 20, 2020, 04:52:27 PM »
Hi, I've got a good reconstruction but I've got an area I'd like to add more detail too, so I want to take and align an additional photo with the existing reconstruction."

If I add this single image and try to "align selected camera" or "align photos" without ("reset current alignment" selected) then it NEVER aligns. I can't seem to get it picked up correctly at all.

If I "reset current alignment" wen running the full "align photos" it works perfectly, every time, but this means I need to recreate everything (model texture) from scratch rather than simply adding this additional photo to the texture.

How can I more reliability of add a new photo after everything has been aligned already?

(Note: Tools -> Preferences -> Advanced -> "Keep Key Points" is enabled and I've confirmed that I've recreated my original alignment and kept the key points by seeing that the option is available to duplicate them to a new chunk)

Thanks in advance,
Roy




5
General / Re: Batch process > Run script
« on: February 11, 2020, 05:50:02 PM »
Any pointers how to filter the chunks based on the selection in the batch process?

Yes I wan to run my script for all chunks, but if they select different options in the batch process it would be good to match those filters...

6
Feature Requests / Re: Create New Unique Folders using Batch Process Export
« on: February 11, 2020, 04:42:49 PM »
Another vote for this. Can't see a way currently that wouldn't involve creating different batch scripts or completely writing a custom script to create the folders... which might be what I have to do...

7
General / Re: Where did the "Add marker" button go?
« on: September 04, 2017, 04:55:50 PM »
Yeah, what the hell - just updated to 1.3.3 and I've lost markers as well...

I thought I was going mad but then opened my old projects and they have markers.

I think it was 1.3.1 I was on.

EDIT: Sorry, was August 2016 it was purchased - was 1.2.6

Pages: [1]