CLI: Help with long string of commands

Answered

Comments

10 comments

  • Avatar
    Zuzana Ďuríčková CR

    Hello Oneris Rico,

    you can use character "^" to separate individual commands into several lines. This is the example how to use it (can be found also in the Help - Reconstruction commands):

    RealityCapture Help

    RealityCapture.exe -load %MyPath%\AlignedProject.rcproj^
      -selectMaximalComponent -setReconstructionRegion %MyPath%\myBox.rcbox^
      -mvsPreview^
      -mvs^
      -mvsHigh^
      -save %MyPath%\NewProject.rcproj -quit

     

    0
    Comment actions Permalink
  • Avatar
    Oneris Rico

    Very much appreciated your response, I tried the ^ solution but it didn't execute the commands following the character, for the moment I'm solving it by using  waitfor /t and set an interval wide enough for the software to have time to export the 15 models, I'll look into for future projects, I also saw that .bat you posted in the other question I asked, I'll research into both... thanks!!!!!

    0
    Comment actions Permalink
  • Avatar
    Zuzana Ďuríčková CR

    Can you please post an example how did you use the command sequence? It should work when used like in the example I posted in the previous message.

    0
    Comment actions Permalink
  • Avatar
    Oneris Rico

    I did this to test it

    "C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe"^
    -addFolder D:\Desktop\Oneris\Shenzhenobj\f811^
    -setReconstructionRegion D:\Desktop\Oneris\Shenzhenobj\0Data\reconstructionRegion.rcbox^
    -mvs^
    -calculateTexture

    and it only opened the software

    0
    Comment actions Permalink
  • Avatar
    Zuzana Ďuríčková CR

    You need to insert space before each command in the beggining of each line. Also please make sure that there is no extra space at the end of each line.

    0
    Comment actions Permalink
  • Avatar
    Oneris Rico

    Hello! well, turns out I have to re-do all the exports cause I forgot to add the -simplify command (ouch), so I found myself in the same problem, I could successfully use the ^ character, but when I run the bat file it is still being capped by the command line limit

    0
    Comment actions Permalink
  • Avatar
    Zuzana Ďuríčková CR

    Would it be possible to share the .bat files with me so that I can take a look at it and find out the problem? If yes, you can for example send the download link via contact form on our webpage. Thanks

    0
    Comment actions Permalink
  • Avatar
    Oneris Rico

    I just sent a message using the contact form, thank you for your help

    0
    Comment actions Permalink
  • Avatar
    Zuzana Ďuríčková CR

    Hello,

    I have replied to your email sent via contact form. You need to modify your script so that all of your datasets are loaded and processed properly one after another. 

    0
    Comment actions Permalink
  • Avatar
    Oneris Rico

    Thank you, I got the email and I'm grinding through it to understand it better, you are very helpful!

    0
    Comment actions Permalink

Please sign in to leave a comment.