1. Fastest way to get points count from geometry with Python. At now I simply use int(hou.hscriptExpression('npoints(“%s”)' % sop_path))
2. Is it possible to get Edit SOP ‘Apply’ button press count?
Some questions
2349 11 1- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- graham
- Member
- 1920 posts
- Joined: 11月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- graham
- Member
- 1920 posts
- Joined: 11月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- graham
- Member
- 1920 posts
- Joined: 11月 2006
- Offline
vuxIt runs in a millisecond for a 100 million point mesh, is that proof enough?
Ok. Can you prove that it faster in execution?
As you've noticed, the nearpoint equivalent is not implemented and thus there is not one. You could write your own using inlinecpp or could try a numpy/scipy approach like this: https://github.com/captainhammy/Houdini-Toolbox/blob/master/python/ht/geometry/pointcloud.py [github.com]
Since the cook count just cares how many times the node has recooked it's not going to be reliable. I'm pretty sure there is no way to get the information you are looking for.
Graham Thompson, Technical Artist @ Rockstar Games
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
It runs in a millisecond for a 100 million point mesh, is that proof enough?I was joking ) I can`t measure difference
You could write your own using inlinecppGood idea, but I need python solution for crossplatform. Maybe when Houdini distributive for Windows will contain compiler )
IMO in my case nearpoint expression is better way
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- Offline
-
- Quick Links