Hi,
I would like to know how to mimic the Partition SOP in VEX, because it's currently not compilable.
I use it mainly like that, to put each point in his own group.
Thank you
Mimic Partition SOP in VEX
2064 6 1- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
- animatrix_
- Member
- 4461 posts
- Joined: 2月 2012
- Online
Hi you can do something like this in a Point Wrangle:
setpointgroup(0, sprintf("pt%s", @ptnum), @ptnum, 1);
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 | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
- animatrix_
- Member
- 4461 posts
- Joined: 2月 2012
- Online
You can do it like this:
setprimgroup(0, s@name, @primnum, 1);
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 | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- tamte
- Member
- 8449 posts
- Joined: 7月 2007
- Offline
maybe it's worth mentioning that using many groups can be very inefficient especially if there is no need for them
I can't imagine many scenarios when you'd need to partition geometry into groups instead of attributes (maybe just for export purposes for formats that rely on groups like obj, or for hengine hosts that require groups for various purposes)
so just keep that in mind
I can't imagine many scenarios when you'd need to partition geometry into groups instead of attributes (maybe just for export purposes for formats that rely on groups like obj, or for hengine hosts that require groups for various purposes)
so just keep that in mind
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
-
- Quick Links