# CLI batch import and multiple 50% simplification

**URL:** <https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836>\
**Category:** Asset Creation\
**Tags:** realityscan\
**Created:** [June 2, 2021, 10:24am UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836 "2021-06-02T10:24:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warczykiki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warczykiki](https://forums.unrealengine.com/u/Warczykiki)\
**Post date:** [June 2, 2021, 10:24am UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/1 "2021-06-02T10:24:11Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [June 2, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/2 "2021-06-02T15:13:18Z")

</div>

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

&nbsp;

---

<div class="post-metadata">

**Author:** ![Warczykiki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warczykiki](https://forums.unrealengine.com/u/Warczykiki)\
**Post date:** [June 7, 2021, 5:43am UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/3 "2021-06-07T05:43:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [June 7, 2021, 12:13pm UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/4 "2021-06-07T12:13:27Z")

</div>

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.&nbsp;

---

<div class="post-metadata">

**Author:** ![Warczykiki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warczykiki](https://forums.unrealengine.com/u/Warczykiki)\
**Post date:** [June 9, 2021, 9:51pm UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/5 "2021-06-09T21:51:36Z")

</div>

Thanks that worked out.

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

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [June 10, 2021, 6:14am UTC](https://forums.unrealengine.com/t/cli-batch-import-and-multiple-50-simplification/710836/6 "2021-06-10T06:14:43Z")

</div>

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