Changing Control Point Images options via CLI

Hi, 

is this kind of CLI workflow possible?

 

I run a detectMarkers and importGroundControlPoints to set them to a certain size/orientation using CLI. The next thing I want to do is select all the images that have markers and then turn them off from enable meshing and texturing and colouring. Reason being I don’t want to have the marker itself visible in the asset mesh or textures, just use it for scale and orientation etc. 

Is it possible to select the marker images via CLI and then disable them in the meshing/texturing options?

I can do it manually by selecting the control point and running Find Images but I’d like to do this via CLI if possible?

thanks!

Hi Ronski, it is theoretically possible.

First, you need to change the measurementsexport.xml file to export just images path, like:

<format id=“{B1F2CB68-599C-47DF-A4F2-C51FC90FE579}” mask=“*.csv” descID=“8392” desc=“File Path” writer=“CapturingReality.Export.ControlPoints” supportsGeoref=“0” requires=“cpm”>
    <body>$ExportControlPointsMeasurements($(imagePath)$(imageName)$(imageExt)
)</body>
</format>

 

Then you can use this CLI for creation of a file with used images for scaling:

%app% -newScene ^
-addFolder “D:\Testing\Datasets\Full_body\fbs_sample\Set2-a.geometry” ^
-detectMarkers ^
-exportControlPointsMeasurements “D:\Testing\CLI\Disabling_images_with_measurement\Outputs\cpm.txt”

 

And use this cmp.txt in a loop like: 

for /f “tokens=*” %%x in (D:\Testing\CLI\Disabling_images_with_measurement\Outputs\cpm.txt) do (
  -selectImage “%%x”
  -enableAlignment “false”
  -enableMeshing “false”
  -enableTexturingAndColoring “false”

But wasn’t able to work with it. This is just a sketch how to do it.