How to filter by attribute in geometry spreadsheet?

   1831   4   0
User Avatar
Member
539 posts
Joined: Aug. 2019
Offline
My vertices have an attribute called pt:



I'd like to display only vertices with pt<10. However it simply doesn't work:



What did I do wrong? How to filter geometries by their attributes?

Attachments:
Screenshot 2021-12-30 005403.png (591.9 KB)
Screenshot 2021-12-30 005508.png (545.4 KB)
test_group_filter.hiplc (79.2 KB)

User Avatar
Member
539 posts
Joined: Aug. 2019
Offline
Even weirder, it works for primitives:



Why can I filter primitives, but not vertices?

Attachments:
unknown (1).png (62.6 KB)

User Avatar
Member
8026 posts
Joined: Sept. 2011
Offline
raincole
Why can I filter primitives, but not vertices?

Looks like an oversight

Bug it up

https://www.sidefx.com/bugs/submit/ [www.sidefx.com]
User Avatar
Member
539 posts
Joined: Aug. 2019
Offline
jsmack
raincole
Why can I filter primitives, but not vertices?

Looks like an oversight

Bug it up

https://www.sidefx.com/bugs/submit/ [www.sidefx.com]

I've reported.

But I kinda feel it's probably not a UI bug, because even Group SOP can't create vertex groups this way:



It's either a bug about group (not just geometry spreadsheet), or a really unintuitive design choice.

Attachments:
Screenshot 2021-12-30 080045.png (715.3 KB)

User Avatar
Member
27 posts
Joined: Jan. 2018
Offline
Seems like a bug but you can make a wrangle to create a group.
int prim =vertexprim(0,i@vtxnum);
int vert = vertexprimindex(0,i@vtxnum);
if(i@pt==210)
{
      setvertexgroup(0,"grp",prim,vert,1,"set");
}

and in the geometry spreadsheet in the "Group:" section just type the group we created "grp"
and that will show all the verts that are toggled as 1.
Seems as though it doesn't like 'if' statements in that area.
If you put grp==1 it won't work, grp==0 won't work, but grp will.

It's annoying.
  • Quick Links