monomind 2 Posted Monday at 05:29 PM Trying to figure out how to check if a selected prim is in multiple base groups. I believe what I'm looking for is an "and" equivalent for the "base group" input field Share this post Link to post Share on other sites
monomind 2 Posted Wednesday at 09:02 PM I'm still looking for a way to check how a prim is in two groups at the same time. Share this post Link to post Share on other sites
ryew 40 Posted Wednesday at 09:17 PM Given that it involves detecting selected prims for attribute filtering, might want to shift this question to the scripting section of the forum Share this post Link to post Share on other sites
anim 1,192 Posted Thursday at 12:34 AM you can do this in Primitive Wrangle string allprimgroups[] = detailintrinsic(0, "primitivegroups"); foreach(string grp; allprimgroups){ if (inprimgroup(0, grp, @primnum)){ append(s[]@primgroups, grp); i@ngroups++; } } it will create 2 attributes: primgroups - array of all group names the primitive belongs to ngroups - number of groups that primitive belongs to (so if this is 2+ it belongs to more than 1 group) Share this post Link to post Share on other sites