Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4140

PointCloud AddRange

$
0
0

@Mrothart wrote:

Hello,

I am trying to import a pointcloud with a .txt/pts format with x,y,z,r,b,g values using a python script. I am currently using “pc.Add” for each individual point, but I am finding this takes a lot of time for large files (~8 gb) and tends to crash. I am looking to optimize my script by using pc.AddRange instead to bunch and append the points. I am stuck with the formatting of pc.AddRange.

I have read this post:

I am still unfamiliar with how the points needs to formatted. Are they supposed to be in an array format, I.E., “[ x, y, z, r, b, g]”? Thanks for any help.

Posts: 26

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4140

Trending Articles