Command line autosave overwrite

Feel free to ask any question here
Post Reply
TDJ
Posts: 5
Joined: Fri Oct 11, 2019 3:27 pm

Command line autosave overwrite

Post by TDJ »

I am running the M3C2 plugin on the same clouds with different settings through command line, but each output overwrites the last. Is there a way to stop autosaved clouds with the same name being overwritten?
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line autosave overwrite

Post by daniel »

You can disable auto-saving (-AUTO_SAVE {ON/OFF}) and specify your own output filename (-SAVE_CLOUDS FILE "file1.xxx file2.yyy ...").

See https://www.cloudcompare.org/doc/wiki/i ... _line_mode
Daniel, CloudCompare admin
TDJ
Posts: 5
Joined: Fri Oct 11, 2019 3:27 pm

Re: Command line autosave overwrite

Post by TDJ »

I did try this and couldn't get it to work. I also don't want to save all open clouds, just the output, otherwise I would have to save a new copy of my raw clouds with each new output, taking time and space. With my novice level it would be useful to not overwrite files by default, to auto save each new output as file1_M3C2.bin, file1_M3C2(01).bin file1_M3C2(02).bin etc then I could rename them all at the end. Perhaps there is no need for this as I imagine there is a better solution for those who can write command line code better.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line autosave overwrite

Post by daniel »

Then I guess the only solution for you is to generate the files in a different folder? (just call the command from this folder).
Daniel, CloudCompare admin
Post Reply