Feature request: add nth as option to selectImage command

Add the nth to this command:

selectImage	imagePath|regexp

For example, I want to select every 4th input. Do it manually in the project with 20k inputs is to horrify =(

Hi Oleg,
you can use this script for this: RealityCapture CLI Sample Scripts - Capturing Reality
Don’t need to do it manually.

1 Like

Really thank you! It’s really useful materials

If someone need the same feature, here is a way how I completed it:

  1. Export image list of my project into images.lst
  2. Create a file 4th.py in the folder with images.lst with content:
with open('images.lst', 'r') as infile:
    inputs = infile.readlines()

selected_inputs = [inputs[i].strip() for i in range(0, len(inputs), 4)]

with open('select_every_fourth.rccmd', 'w') as outfile:
    for img in selected_inputs:
        outfile.write(f'-selectImage "{img}" union\n')
  1. Run this python script.
  2. After successful running there will be a select_every_fourth.rccmd in same folder, drag-n-drop it into Reality Capture with opened project.
  3. Wait when it will be done. For example, I waited selection of 4500 images about 30-40 seconds.

How could I found this page (RealityCapture CLI Sample Scripts - Capturing Reality) in the navigation? Which section contain links like these?
UPD: sorry, I finally found it at the end of this page Sample datasets - Capturing Reality