Page 1 of 1

New plugin - tutorial

Posted: Tue Nov 24, 2015 9:05 pm
by adams
Hello,

Have u got any tutorial "how make new plugin to CC"?

I have some idea, but i'm not professional programmer, so i need some advices to do it :)

I wanna make plugin with other Variants of the ICP Algorithm.

What do u think about it?

Cheers,
Adam

Re: New plugin - tutorial

Posted: Tue Nov 24, 2015 9:59 pm
by daniel
Please look at https://github.com/cloudcompare/trunk/b ... plugin.rtf. And generally the best way to learn is to look at plugins with a similar workflow.

Otherwise there are other discussions on the forum about this subject. And of course you can ask more questions here.

Re: New plugin - tutorial

Posted: Thu Nov 26, 2015 11:10 pm
by adams
Ok, thanks for advice. I will check it.

I have other question
I'm trying to write some scripts in python and i have real problem with this function:

ICP for 2 clouds > i get .txt file with matrix

Then i would like to use this matrix again for other cloud, but i still got error message
"Failed to read transformation matrix file
'test_3_L2__REGISTRATION_MATRIX_2015-11-27_00h06.txt' "

I tried to change name of .txt file, but it still doesn't work

It's part of my script in python:

Code: Select all

openFile=os.system("CloudCompare -AUTO_SAVE OFF -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath1
+ " -CROP2D Z " + text + " -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath2 + " -ICP " +
" -CLEAR_CLOUDS " + " -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath1 + " -APPLY_TRANS " + fpath )
fpath is the name of .txt file

Re: New plugin - tutorial

Posted: Fri Nov 27, 2015 7:40 am
by daniel
Have you tried providing the full path to the transformation maybe?

Otherwise can you post the file contents?

Re: New plugin - tutorial

Posted: Thu May 11, 2017 7:54 am
by TommyMager
Hi! I'm not a professional programmer, either. Need few tips on CC plugins. The link above is dead.

Re: New plugin - tutorial

Posted: Thu May 11, 2017 8:39 am
by daniel
Indeed, here is the new link / document:
https://github.com/CloudCompare/CloudCo ... IBUTING.md