Finding point clouds


Point clouds are a type of X3DObject, so you can use FindChild and FindChildren to find point clouds.

BUT watch out, the SDK docs list the wrong type constant: siCloudPrimType.
That type was for the old, obsolete particle system.
For ICE point clouds, use the constant siPointCloudPrimType (“PointCloud”).

from win32com.client import constants as c

PointClouds = Application.ActiveSceneRoot.FindChildren2("*", c.siPointCloudPrimType ) 
for pointCloud in PointClouds :
    Application.LogMessage(pointCloud.FullName )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s