Procedural grouping (grouping leafs of a tree)
4508 7 1- alexpi
- Member
- 41 posts
- Joined: 2月 2006
- Offline
- Enivob
- Member
- 2625 posts
- Joined: 6月 2008
- Offline
Middle click on the File node that imports the tree and see if any groups already exists? Then you could just select from the existing groups. Most tree models already have this built-in. (i.e. trunk/bark, leaves)
Edited by Enivob - 2016年12月1日 09:22:53
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- alexpi
- Member
- 41 posts
- Joined: 2月 2006
- Offline
- alexpi
- Member
- 41 posts
- Joined: 2月 2006
- Offline
- Enivob
- Member
- 2625 posts
- Joined: 6月 2008
- Offline
Can you post the source tree file?
Mainly because it depends upon how the primitives are arranged within the source object. For instance all the leaves might have been created last thus have a higher primitive index compared to branches. If that were the case then you could create a group by simply evaluating each @primnum in a wrangle.
Maybe each primitive has a specific vertex count that makes it detectable..?
Mainly because it depends upon how the primitives are arranged within the source object. For instance all the leaves might have been created last thus have a higher primitive index compared to branches. If that were the case then you could create a group by simply evaluating each @primnum in a wrangle.
if (@primnum >150) { i@group_bottom_half = 1; }
Edited by Enivob - 2016年12月3日 09:39:58
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- alexpi
- Member
- 41 posts
- Joined: 2月 2006
- Offline
The tree file is too big (32MB) to upload. The primitives are not in arranged in a particular way. The leafs are not connected to the tree, they just float arround, and all of them are just these two prim squares. The only way I can think of achieving the grouping, is adding any geometry that has two prims to a group, perhaps by some kind of looping.
- Enivob
- Member
- 2625 posts
- Joined: 6月 2008
- Offline
This thread [sidefx.com] mentions a work flow of an Assemble SOP followed up by a Partition. Maybe that is the way to go?
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- el_diablo
- Member
- 133 posts
- Joined: 7月 2005
- Offline
-
- Quick Links