Python fastest method to create 10000 points.
2268
3
0
-
- mcfx
- 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
-
- Enivob
- Member
- 2544 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.
-
- mcfx
- Member
- 16 posts
- Joined: Feb. 2015
- Offline
Unfortunately that's not possible for what I'm doing. Will have to be entirely python based.
-
- graham
- Member
- 1908 posts
- Joined: Nov. 2006
- Offline
You could do this. It appears to be a bit faster
geo.createPoints(((0,0,0),) * num_points)
Graham Thompson, Technical Artist @ Rockstar Games