Jump to content
Daskerdaks

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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×