Scripting?

To post any request/idea for new functionalities
adequat
Posts: 5
Joined: Thu Sep 29, 2016 9:54 pm

Scripting?

Postby adequat » Tue Jan 17, 2017 2:25 pm

I was wondering about the opinions on a possibility to script something in CC or to somehow use the full functionality of CC in scripts. I am still fairly new to this game but from what I see, having the ability to script a process in CC would make it a much more powerful tool for many applications.
I know that there is the command line processing but from the Wiki it looks like quite some functions are missing. Are any of the plugins available via the command line?
My application would be running the same steps on similar clouds (e.g. import, distance computations, rasterizing, save as plus, some volume calculations or a few areas, ...). Some of this would probably be possible with the command line but not all of it.

What I also like a lot about scripting is that one can be sure that (given the CC version does not change) the steps are exactly the same or vary only by what is defined in the script. Which makes it great for trying different parameters and so on and is good for scientific data, where every step from the raw data to the output should be well defined and reproducible.

I suspect that adding something like this would be a fairly large amount of work but I just wanted to see, what other people think.

daniel
Site Admin
Posts: 3327
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scripting?

Postby daniel » Tue Jan 17, 2017 9:00 pm

1) Since version 2.9, plugins can now be called through the command line... technically

2) Yes, only a limited number of functions is accessible through the command line interface, but it's because I'm the only one who seems to be willing to add new commands (hum, hum), and I don't have the time / motivation to add all of them as, as you guessed, it's quite some work and I don't personally use the command line!

3) Adding a more generic scripting mechanism (Python, etc.) would be great but would imply indeed a huge work (much more than simply extending the command line tool).
Daniel, CloudCompare admin

Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Scripting?

Postby Haowyr » Fri Jan 20, 2017 9:50 am

Hey this is good news Daniel! Will 2.9 be available in 7z format? :)

daniel
Site Admin
Posts: 3327
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scripting?

Postby daniel » Tue Jan 24, 2017 8:55 pm

That's done, the 2.9.alpha is now available on the main download page.
Daniel, CloudCompare admin

Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Scripting?

Postby Haowyr » Mon Feb 06, 2017 10:29 am

I still haven't found the way to call for a plug in in command line!

daniel
Site Admin
Posts: 3327
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scripting?

Postby daniel » Mon Feb 06, 2017 12:21 pm

Well, someone has to add the code for each plugin ;)

I said it's 'technically' possible. Before that it was not even possible :D
Daniel, CloudCompare admin

Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Scripting?

Postby Haowyr » Mon Feb 06, 2017 1:04 pm

Oh ok, I didn"t get that! Well I cannot do that, my skills are too low :(


Return to “Requests, new functionalities”

Who is online

Users browsing this forum: No registered users and 1 guest