Python fastest method to create 10000 points.

   2236   3   0
User Avatar
Member
16 posts
Joined: Feb. 2015
Offline
I'm looking a better approach than the following. Is there a quick way to create a set of zero's points in python?

for i in range(10000):
geo.createPoint()
Edited by mcfx - Dec. 21, 2017 17:14:39
User Avatar
Member
2534 posts
Joined: June 2008
Offline
Just use Python to create a scatter node with the count set to 10,000. Or just skip the python node and just drop down a scatter node.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
16 posts
Joined: Feb. 2015
Offline
Unfortunately that's not possible for what I'm doing. Will have to be entirely python based.
User Avatar
Member
1906 posts
Joined: Nov. 2006
Online
You could do this. It appears to be a bit faster
geo.createPoints(((0,0,0),) * num_points)
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links