Hi there
Is it possible to re-sort the point numbers on geometry using python? If so, can anybody “point” me on the right direction?
Cheers
Re-sorting point numbers with python
3807 4 2- rafaels
- Member
- 696 posts
- Joined: 3月 2009
- Offline
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- graham
- Member
- 1908 posts
- Joined: 11月 2006
- Offline
HOM provides no way to do any kind of sorting. You could conceivably do it manually by creating an equal amount of points as your source, copying all attribute values from the source points to the dest points in whatever sort order you see fit and then delete the source points. This however would be very slow for even a moderate amount of points and attributes.
Another approach would be to use inlinecpp to wrap around some of the HDK calls that can sort points/prims.
Another approach would be to use inlinecpp to wrap around some of the HDK calls that can sort points/prims.
Graham Thompson, Technical Artist @ Rockstar Games
- rafaels
- Member
- 696 posts
- Joined: 3月 2009
- Offline
Cool, thanks for clarifying this!
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- samboosa
- Member
- 26 posts
- Joined: 9月 2010
- Offline
- animatrix_
- Member
- 4531 posts
- Joined: 2月 2012
- Offline
You can use nested lists or a dictionary of lists depending on how you want to add items to the appropriate lists.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links