So I am trying to delete prims by name and attribute at once.
Im trying to do this on the filter by expression but for god knows what I cannot seem to find the right format to type it.
@name==“base_name_*” && @att==1
does not produce anything.
The problem seems to be in the string attribute
as
@att==1
gives me the appropriate result.
I tryied searching for the answer to this but everyone uses the group function, my self included. But now I find myself needing to filter by expression.
Am I missing something here? shouldn't
@name==“base_name_*”
work?
Delete by name and attribute.
6197 3 1- Nicolas Heluani
- Member
- 280 posts
- Joined: Dec. 2015
- Offline
- tamte
- Member
- 8513 posts
- Joined: July 2007
- Offline
the group syntax is described here:
http://sidefx.com/docs/houdini/model/groups.html#manual [sidefx.com]
so to do what you want you simply do
which would work in the group fields of the nodes
unless of course you are talking about Group Expression node which uses VEX then it would be:
http://sidefx.com/docs/houdini/model/groups.html#manual [sidefx.com]
so to do what you want you simply do
@name=base_name_* ^!@att=1
which would work in the group fields of the nodes
unless of course you are talking about Group Expression node which uses VEX then it would be:
match("base_name_*", s@name) && @att==1
Edited by tamte - Dec. 10, 2017 12:13:02
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Nicolas Heluani
- Member
- 280 posts
- Joined: Dec. 2015
- Offline
- vusta
- Member
- 555 posts
- Joined: Feb. 2017
- Offline
the syntax of ^!@att=1 to me is downright ludicrous…
If I want to test if something is X, I would test it in the positive…ie…are you X ?
It's silly to ask in the double negative like ‘Are you except not X’ ?
Not having a go at you, of course, but just commenting on the syntax ^!…..no it ain't ‘simple’…it's ridiculous
If I want to test if something is X, I would test it in the positive…ie…are you X ?
It's silly to ask in the double negative like ‘Are you except not X’ ?
Not having a go at you, of course, but just commenting on the syntax ^!…..no it ain't ‘simple’…it's ridiculous
-
- Quick Links