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
3123 6 1-
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
-
- animatrix_
- Member
- 4971 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] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
-
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
-
- animatrix_
- Member
- 4971 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] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- tamte
- Member
- 9205 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
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- RonanCroyal
- Member
- 31 posts
- Joined: 9月 2018
- Offline
-
- Quick Links