probiner Posted September 8, 2018 Share Posted September 8, 2018 http://www.sidefx.com/docs/houdini/vex/functions/findattribval.html Here's a test with "primgroup" What doesn't make sense to me is that I thought I had to use the class for "primgroup", and the attribname for groupname, but then there's no input for the actuall attribute name. Cheers PRB_findattribval_primgroup.hiplc Quote Link to comment Share on other sites More sharing options...
anim Posted September 8, 2018 Share Posted September 8, 2018 (edited) it's not a group scope, its literally for treating groups like an attribute so if you say... "prim", "attribname", value ... it will find @primnum whose attribname value is the same as your value and ... "primgroup", "groupname", value ... will find @primnum whose grupname membership is the same as your value (0 or 1) so in your case I'd assume you'd do: findattribval(0, "primgroup", "prims", 1) ; however it doesn't seem to do what it says, I'd assume it'll give you 2 as that is the first @primnum with the prims group of value 1, but I was always getting -1, it feels like a bug you can always use expandprimgroup(0, "prims")[0]; even though it may be slower However I assume you were hoping for group scope to limit which prims the findattribval() is searching, so I'm afraid that's not implemented Edited September 8, 2018 by anim Quote Link to comment Share on other sites More sharing options...
probiner Posted September 9, 2018 Author Share Posted September 9, 2018 Yes @anim I was going for a groupscope to mask the search. i'll RFE it. Cheers! 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.