path

Questions related to plugins development
Post Reply
suyufeng
Posts: 47
Joined: Wed May 26, 2021 7:04 am

path

Post by suyufeng »

pc->getParent();

Can I obtain the local path of the PC in the CC plug-in for the point cloud selected by the PC? How can I obtain the path?
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: path

Post by daniel »

It's not stored (by default). But in the normal process, entities are stored in a group ('ccHObject') with the filename as name. So you could try your luck and probe for the cloud parent. If it's a group, then you can try to get the group name, and check if it's a valid filename.

P.S.: ideally, all your development questions should be asked on github, it would be easier to answer them there.

P.P.S: moreover, this is the wrong section of the forum. You should at least ask your questions in the 'developers' area (Developers > Plugins)
Daniel, CloudCompare admin
suyufeng
Posts: 47
Joined: Wed May 26, 2021 7:04 am

Re: path

Post by suyufeng »

thank you
Post Reply