Page 1 of 1

Opening a "viewer" on a window and changing the Color Scale parameters using CloudCompare CLI

Posted: Thu Feb 02, 2023 7:18 pm
by Nomad
Hi,
So there are a few things I'd like to do using CloudCompare's CLI.
  • Opening a cloud on a window that only has a viewer
  • Changing the parameters of all opened clouds to "Color Scale"->"Current" to "Blue>Green>Yellow>Red"
  • And changing both the "SF display params"->"Display ranges" "displayed" and "saturation" values
I've been looking at the wiki and searching around, if there is a command on the wiki for this then I have missed it.

I should mention this cloud I'm opening is the result of the "c2c_dist" command.

Re: Opening a "viewer" on a window and changing the Color Scale parameters using CloudCompare CLI

Posted: Mon Feb 06, 2023 10:08 pm
by daniel
1) You could use ccViewer to do that...

2 & 3) ...but you can't do that with ccViewer ;)

You could first use the command line version of CC to force the color scale (-SF_COLOR_SCALE), with an absolute color scale so at to get a fixed rendering. Note that you can use the Color Scale Manager to create the right color scale, and then export it to an .xml file that you can apply with the -SF_COLOR_SCALE command. Then you can make CC save the cloud as a .bin file that ccViewer can open.

(last point: mind that the version of ccViewer currently online cannot load BIN files created by the 2.13.alpha version, you'll have to use CloudCompare 2.12 to do this until I update ccViewer)

Re: Opening a "viewer" on a window and changing the Color Scale parameters using CloudCompare CLI

Posted: Thu Feb 09, 2023 4:29 pm
by Nomad
That does the trick! Thank you!

By the way, out of curiosity, these fields (inside the red box) cannot be changed with the command line interface?
Image

Re: Opening a "viewer" on a window and changing the Color Scale parameters using CloudCompare CLI

Posted: Thu Feb 09, 2023 6:44 pm
by daniel
Nope, that's primarily a 'user interaction' feature.