CLI batch import and multiple 50% simplification

Answered

Comments

5 comments

  • Avatar
    Ondrej Trhan CR

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

     

    0
    Comment actions Permalink
  • Avatar
    Warczykiki

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

    0
    Comment actions Permalink
  • Avatar
    Ondrej Trhan CR

    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. 

    0
    Comment actions Permalink
  • Avatar
    Warczykiki

    Thanks that worked out.

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

    0
    Comment actions Permalink
  • Avatar
    Ondrej Trhan CR
    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.