Jump to content

VEX in group expression vs VEX in attribute wrangle

Recommended Posts

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.png


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...