Accessing Point Cloud information...?

Hello,
I'm still pretty green at Python inside Clarisse, but I'm trying to make a script that replaces objects scattered in a pointcloud with combiners in the same position/rotation/scale as the scatterer.
For that, the first thing I'm trying to do is getting a list with each individual point's properties (position, rotation, scale and ID). Then I could loop through them, adding the combiners for each point.
Following https://clarissewiki.com/3.6/sdk/manipulating_point_clouds.html#:~:text=What%20are%20point%20clouds%3F,and%20hair%20and%20fur%20interpolation I found a way to get the pointcloud properties, but now I have no idea where to go from here.
The result I get from running this with the pointcloud selected is:
I (think) understand that this is the collection of properties of this clarisse point cloud object, correct? But I don't know how to access a readable version of it to iterate with.
This is what I have so far (straight from the Clarisse help page):
Any light would be greatly appreciated!
I'm still pretty green at Python inside Clarisse, but I'm trying to make a script that replaces objects scattered in a pointcloud with combiners in the same position/rotation/scale as the scatterer.
For that, the first thing I'm trying to do is getting a list with each individual point's properties (position, rotation, scale and ID). Then I could loop through them, adding the combiners for each point.
Following https://clarissewiki.com/3.6/sdk/manipulating_point_clouds.html#:~:text=What%20are%20point%20clouds%3F,and%20hair%20and%20fur%20interpolation I found a way to get the pointcloud properties, but now I have no idea where to go from here.
The result I get from running this with the pointcloud selected is:
- Code: Select all
<framework.GeometryPointPropertyCollection; proxy of <Swig Object of type 'GeometryPointPropertyCollection *' at 0x113aba80> >
I (think) understand that this is the collection of properties of this clarisse point cloud object, correct? But I don't know how to access a readable version of it to iterate with.
This is what I have so far (straight from the Clarisse help page):
python code
if ix.selection.get_count() > 0:
item = ix.selection[0]
if item.get_module().is_geometry():
# only items of class Geometry define point clouds
geo = item.get_module().get_geometry()
ptc = geo.get_point_cloud()
# some geometries such as implicit sphere (OfClass|GeometrySphere) may not define point clouds
if ptc:
prop_collection = item.get_module().get_properties()
print prop_collection
Any light would be greatly appreciated!