I have several curves which I resample and turn on Curve U Attr and I like to group the points which are @curveu == 0. But in the group node if I toggle Expression on at the Base Group field only one point shows active. Expanding the String Value shows 1 and not all the points which are @curveu == 0.
If I visualize the curveu attr than I should get point ids like 0 27 54 81 108 135 162 189 …
Added hip file.
Thanks for the help.
Stephan
How to group points from several curves in Houdini 16?
2938 3 1- osterburg
- Member
- 2 posts
- Joined: Nov. 2016
- Offline
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
The “Base Group” field is a string parameter that's evaluated only once. In your HIP file, it's set to be evaluated as an HScript expression.
If you remove the expression and just put in the string
@curveu
isn't defined in HScript, so it seems to be defaulting to 0. 0 == 0
is true, so it evaluates to 1. That gets converted to the string 1
for the parameter, so Base Group is then just 1
.If you remove the expression and just put in the string
@curveu==0
, (see attached), it seems to work as expected, because the group parsing identifies @curveu==0
as something that it needs to evaluate as a group. This should work the same in other Group parameters as well. Hopefully that helps clear up the confusion!
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
- osterburg
- Member
- 2 posts
- Joined: Nov. 2016
- Offline
- dyei
- Member
- 28 posts
- Joined: July 2009
- Offline
-
- Quick Links