Page 1 of 1

Command line in a Python program.

Posted: Tue Mar 01, 2022 3:01 pm
by Vince
Hello,
I am using CC with a command line.
I launch this command in a python program using « os.system ».
For exemple :
os.system("CloudCompare.exe -O M1.ply -CROP2D Z 3 618.562 537.008 665.164 554.773 658.247 497.540 -SAVE_CLOUDS ALL_AT_ONCE FILE result")

It was OK with the version ( 2.11.3 (Anoia) [64 bit]) of CC.
But it's no more OK with version (2.12 alpha [64 bit]).
I test these two versions on the same computer

Does somebody have an idea ?

Vincent

Re: Command line in a Python program.

Posted: Wed Mar 02, 2022 8:45 pm
by daniel
What's 'not OK'? It is crashing? Or is it displaying an error?

Re: Command line in a Python program.

Posted: Thu Mar 03, 2022 9:03 am
by Vince
Hello,

For the test with CC 2.11 you can see the attachment CC_2P11.png. The job is done and I have my result files.
CC_2P11.png
CC_2P11.png (52.57 KiB) Viewed 4064 times
For the test with CC 2.12 you can see the attachment CC_2P12.png. It seem he don't run CC and I havent my result files.
CC_2P12.png
CC_2P12.png (28.47 KiB) Viewed 4064 times
If I test the command line directly in a "DOS command promp" the job is done for the two versions of CC.

Thank you
Vincent

Re: Command line in a Python program.

Posted: Sat Mar 05, 2022 11:06 am
by daniel
Ah, that's weird, but appart from a DLL issue, I don't see what could explain this?

Re: Command line in a Python program.

Posted: Tue Mar 08, 2022 3:08 pm
by Vince
Reading your last post I was thinking about waiting a new version (to avoid looking for another solution :) ).
But there is already a 2.12 beta version. And it works with this version.
CC_2P12_beta.png
CC_2P12_beta.png (47.61 KiB) Viewed 3929 times
Thank you

Vincent