CLI batch import and multiple 50% simplification

Hi,

Being new to CLI commands im strugling to make this work.

I have 400 models which i must import into RC and simplify in 5 steps (50% each) then expert all in batch to fbx.

Need help in scripting the right command for this.

Thanks :slight_smile:

Hi, were these models created in RC? Are they from one project or there is 400 projects?

 

Hi, This is one mesh created in RC and exported in parts.

Hi, I created something like this:

set app=“C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe”
set workingDir=%~dp0
%app% ^
-load %workingDir%\cyklus.rcproj ^
-importModel %workingDir%\Model_1_0000000.obj ^
-simplify “%workingDir%\params.xml” ^
-renameSelectedModel sim_model_0 ^
-exportModel “sim_model_0” “%workingDir%/simple_model_0.fbx” “%workingDir%\export.xml” ^
-quit ^

It is for one model. Problem can be for 399 other, but you can copy this script 400 times and change names. 

Thanks that worked out.

Can you please give me an example of a string for autosave loading?

| load | MyProject.rcproj |

recoverAutosave|deleteAutosave

|

Load an existing project from the MyProject.rcproj file. Use optional parameters to define the action if there is an autosaved file present for this project. Using recoverAutosave will open the autosaved project, while deleteAutosave will delete the autosaved project and load the original one.
To set the preference globally for all projects, use set command with appAutoSaveCliHandling key.

|

-load D:\Testing\autosave.rcproj recoverAutosave ^

This should work for you.