Commandline Import Alignment Settings

Hi,

The alignment settings dialog allows the im- and export of settings like Max Features per mpx etc. Manually I can import and export it fine, but I need the import to happen via commandline. All the other important import settings have working commandline equivalents for it, but for this I cannot find any suitable commandline option.
Is it there or do I need to construct a XML reader and lot’s of -SET key=val entries?

Thanks for any info!
-Johan

2 Likes

Hi Johan, what you can do is export alignment settings as XML from any other project, set there the wanted parameters and then use command -align “%workingDir%\params.xml” ^

@OndrejTrhan that makes a whole lot of sense. This seems missing from the CLI documentation right, as an optional parameter.
Thanks!

I am sorry, so this won’t work like this, you need to use -set commands. Or you can export whole global settings and use those with CLI with -importGlobalSettings
image

Ooh, ok, thanks, I just removed all the -set options from the config, but I’ll consider the global settings. Thanks for clarifying!

@OndrejTrhan thinking about the global settings, is everything stored in there?

  • Registration settings
  • Reconstruction Region
  • Simplify Settings
  • Model Export Settings etc.

If so, when we have a totally correct setup for our scan setup can we just load the global settings, then import the images and run all the steps without any other config file needed to be loaded? Right now we load the setting files with each operation.

Thanks!

Yes, there should be stored whole application’s settings.

Hi there, I am running into this same issue and am wondering what you mean by “use -set commands”. I am just starting to use RealityCapture’s CLI and want to import a range of alignment settings (around 20 of them). Any tips would help:)

These are the keys and values that can be used with the set command:
https://rchelp.capturingreality.com/en-US/tutorials/setkeyvaluetable.htm

An example would be:
-set “sfmMaxFeaturesPerImage=500000”

1 Like