[URGENT] Looking for professional scripting help

We are tying to script a specific action list with this software but are running into some issues.

The goal of the action list is to merge 2 scans of a object (a brick - top up / bottom up) into a single mesh and extract a textures from the result based on 6 bakeplanes. We are not even sure we can extract a texture in such a manner with this software?

This is the action list we are trying to automate. We use the List of CLI commands as reference but some of the commands fail without an obvious cause.

  1. open project
  2. import first batch
  3. detect markers
  4. align images
  5. import boundingbox A (predefined bounding box floating above the turntable to cut it off entirely)
  6. generate draft mesh
  7. export masks to folder [FAILED IN CLI]
  8. export registration
  9. open project
  10. import second batch
  11. detect markers
  12. align images
  13. import boundingbox A (predefined bounding box floating above the turntable to cut it off entirely)
  14. generate draft mesh
  15. export masks to folder [FAILED IN CLI]
  16. export registration
  17. open project
  18. import both components [FAILS ON SECOND IMPORT, POSSIBLY BECAUSE IDENTICAL MARKERS? WORKS IN GUI]
  19. align components
  20. create construction box from control points
  21. set ground plane by reconstruction box [NOT POSSIBLE IN CLI?]
  22. build normal detail mesh
  23. build texture
  24. export high poly
  25. decimate to low poly
  26. build texture for low poly
  27. export low poly mesh
  28. import bakeplane (x6)
  29. transfer basecolour to bakeplane from high poly source [CAN THIS BE DONE? EXPORT NEEDS AN ALPHA CHANNEL]
  30. transfer normal info to bakeplane from high poly source [CAN THIS BE DONE IN TANGENT SPACE?]
  31. export bakeplane textures (6x)

We managed to script it until step 20 (excluding the failed steps), source below:

### Processing the bot folder
-addFolder E:\_Nanopixel\VDS\GHMN080A0BT\6\bot\jpg\ ^
-detectMarkers E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\DetectMarkers.xml ^
-align ^
-selectMaximalComponent ^
-importGroundControlPoints E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\GroundControl.csv E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\ImportGroundControl.xml ^
-update ^
-setReconstructionRegion E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\ReconstructionRegion_A.rcbox ^
-calculatePreviewModel ^
-selectAllImages ^
# -exportDepthAndMask ^
-exportRegistration E:\_Nanopixel\VDS\GHMN080A0BT\6\bot\jpg\Bot_Registration.rcalign ^
-save E:\_Nanopixel\VDS\GHMN080A0BT\6\bot\jpg\Bot_Scan.rcproj ^
-newScene ^

### Processing the top folder
-addFolder E:\_Nanopixel\VDS\GHMN080A0BT\6\top\jpg\ ^
-detectMarkers E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\DetectMarkers.xml ^
-align ^
-selectMaximalComponent ^
-importGroundControlPoints E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\GroundControl.csv E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\ImportGroundControl.xml ^
-update ^
-setReconstructionRegion E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\ReconstructionRegion_A.rcbox ^
-calculatePreviewModel ^
-selectAllImages ^
# -exportDepthAndMask ^
-exportRegistration E:\_Nanopixel\VDS\GHMN080A0BT\6\top\jpg\Top_Registration.rcalign ^
-save E:\_Nanopixel\VDS\GHMN080A0BT\6\top\jpg\Top_Scan.rcproj ^
-newScene ^

REM combine scans
-importComponent E:\_Nanopixel\VDS\GHMN080A0BT\6\bot\jpg\Bot_Registration.rcalign ^
-importComponent E:\_Nanopixel\VDS\GHMN080A0BT\6\top\jpg\Top_Registration.rcalign ^

# -exportModel "Model 1" E:\_Nanopixel\VDS\GHMN080A0BT\6\bot\jpg\mesh.obj E:\_Nanopixel\VDS\GHMN080A0BT\6\_DATA\ModelExport.xml

Can anyone help us with creating a script to automate this actionlist? And tell why it fails on some steps?

Kinds regards

Hey did you end up solving this? 

Hi Garrett,

which part are you having difficulty with?