Page 1 of 1
path
Posted: Fri Jun 25, 2021 6:40 am
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?
Re: path
Posted: Sun Jun 27, 2021 9:44 am
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)
Re: path
Posted: Thu Jul 01, 2021 3:25 am
by suyufeng
thank you