Daskerdaks Posted May 31, 2016 Share Posted May 31, 2016 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. Quote Link to comment Share on other sites More sharing options...
jon3de Posted May 31, 2016 Share Posted May 31, 2016 You can use expressions in a group sop or vex in a wrangle e.g. I made an example file but you can read also here Jon GroupfromAttrib.hipnc 1 Quote Link to comment Share on other sites More sharing options...
f1480187 Posted May 31, 2016 Share Posted May 31, 2016 Also Partition SOP. partition.hipnc 1 Quote Link to comment Share on other sites More sharing options...
mestela Posted May 31, 2016 Share Posted May 31, 2016 also the docs. http://archive.sidefx.com/docs/houdini15.5/nodes/sop/group#creating-groups-based-on-point-attributes Quote Link to comment Share on other sites More sharing options...
Daskerdaks Posted May 31, 2016 Author Share Posted May 31, 2016 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 Quote Link to comment Share on other sites More sharing options...
mestela Posted May 31, 2016 Share Posted May 31, 2016 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 2 Quote Link to comment Share on other sites More sharing options...
Daskerdaks Posted May 31, 2016 Author Share Posted May 31, 2016 (edited) 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 May 31, 2016 by Daskerdaks Quote Link to comment Share on other sites More sharing options...
philpappas Posted June 2, 2019 Share Posted June 2, 2019 how would you convert every primitive attribute to each own group? if you have lots of them 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.