I am new to Houdini and have the following question:
- I made a box and set Axis divisions to (20,20,4)
- I created a node “attribcreate” (my_attr), specified class “Points” and set values ($BBX,$BBY).
Attribute ‘my_attr’ now has bounding box coordinates for each point in range
- I need to group points for which the following is true: (@my_attr.x == 0 OR @my_attr.x == 1) AND (@my_attr.y == 0 OR @my_attr.y == 1)
This should select all point for 4 outer edges of my box.
- Which node should I use (group, group expression)?
- How do I write correctly the condition above?
As I understood sign “@” is used to access attributes, but expression above just doesn't work.
Group points by attributes
3141 1 0- RadikSalakhov
- Member
- 27 posts
- Joined: Aug. 2018
- Offline
- tamte
- Member
- 8549 posts
- Joined: July 2007
- Online
use Group Expression
just replace AND with &&
and OR with ||
here is the VEX syntax reference
https://www.sidefx.com/docs/houdini/vex/lang.html#comparisons [www.sidefx.com]
just replace AND with &&
and OR with ||
here is the VEX syntax reference
https://www.sidefx.com/docs/houdini/vex/lang.html#comparisons [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links