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

Feel free to ask any question here
Post Reply
Nomad
Posts: 2
Joined: Thu Feb 02, 2023 7:09 pm

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

Post 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.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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)
Daniel, CloudCompare admin
Nomad
Posts: 2
Joined: Thu Feb 02, 2023 7:09 pm

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

Post 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
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

Nope, that's primarily a 'user interaction' feature.
Daniel, CloudCompare admin
Post Reply