karen Posted May 4, 2023 Share Posted May 4, 2023 in attached hip file, I'm trying to group meshes that have only 6 primitives. When I use a wrangle it works: if (@numprim<=6) @group_grp1=1; when I use a group expression it doesn't: @numprim<=6 I'd like to be able to use group expression as well, what should I change? group_expression.hiplc Quote Link to comment Share on other sites More sharing options...
haggi Posted May 5, 2023 Share Posted May 5, 2023 It doesn't work because you do not apply the group expression to connected prims. In your loop the wrangle node is applied to a set of connected primitives and calculates the @numprim for this set whereas in the group expression node, you only have a static @numprim count. Just replace the wrangle with the group expression and it should work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.