Jump to content

Group according to attribute value


Recommended Posts

Hi, this is pretty basic, but for some reason I can't find anything on how to create a group based on attribute values?

My thinking is to use an expression like "attribute value equals string value", but I can't seem to figure out the syntax.

Link to comment
Share on other sites

Hi thanks :-)

My syntax issue is, however, more concerned with custom attributes and string values. I've attached a hip file, so you can se it:

I'm doing an object merge, creating object path attributes on the primitives. I then need to create certain groups with specific path attributes.

group_by_att.hipnc

Link to comment
Share on other sites

4 hours ago, mestela said:

Here's 3 ways, one using a wrangle and an exact match, a wrangle with a pattern, and a group with a pattern.

 

 

group_by_att_3_ways.hipnc

Hi Matt, excellent thanks, I can se that I had misunderstood the way the group sop works and also a bit of the syntax, the style I wrote apparently is closer to VEX, than HScript. By the way your website rocks, I'm definitely going to be using it as resource. :-)

Edited by Daskerdaks
Link to comment
Share on other sites

  • 3 years later...

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.

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