Hello,
There was a very handy $N expression that selected the last point of a curve when put in a group sop.
I tried @numpt - 1 in an GroupExpression sop without success. How can I this in h16 ?
Many thanx.
Selecting the last point of a curve in H16
17748 9 4-
- Pasto
- Member
- 80 posts
- Joined: Dec. 2013
- Offline
-
- Enivob
- Member
- 2607 posts
- Joined: June 2008
- Offline
That is weird, it is like the Pattern field no longer exists in the Group node. Why change something that worked just fine..?
You can drop down a Delete and your expression works in the Pattern field. Just activate Delete-Non-Selected and you will get your single end point.
You can drop down a Delete and your expression works in the Pattern field. Just activate Delete-Non-Selected and you will get your single end point.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
-
- Pasto
- Member
- 80 posts
- Joined: Dec. 2013
- Offline
-
- Pasto
- Member
- 80 posts
- Joined: Dec. 2013
- Offline
-
- TwinSnakes007
- Member
- 609 posts
- Joined: July 2013
- Offline
Because I believe they wanted to lower the barrier of proceduralism in Houdini for new comers.
One should be able to select the 1st/last member of a list without having to learn HScript/Vex beforehand.
So, they introduced the Group by Range node, set the Method to ‘Relative to Start/End’, check the ‘Invert Range’ checkbox and then increase the Start/End value sliders to your liking.
Now this style of Grouping is more accessible to a wider range of Houdini users.
I like this direction of bringing Houdini out of the TD spectrum and into the range of the average Generalist.
One should be able to select the 1st/last member of a list without having to learn HScript/Vex beforehand.
So, they introduced the Group by Range node, set the Method to ‘Relative to Start/End’, check the ‘Invert Range’ checkbox and then increase the Start/End value sliders to your liking.
Now this style of Grouping is more accessible to a wider range of Houdini users.
I like this direction of bringing Houdini out of the TD spectrum and into the range of the average Generalist.
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- Pasto
- Member
- 80 posts
- Joined: Dec. 2013
- Offline
-
- peteski
- Member
- 518 posts
- Joined: Dec. 2013
- Offline
-
- Pasto
- Member
- 80 posts
- Joined: Dec. 2013
- Offline
-
- kennydietrich
- Member
- 9 posts
- Joined: Nov. 2011
- Offline
-
- tamte
- Member
- 8723 posts
- Joined: July 2007
- Offline
kennydietrich
They both do the same thing when placed in a groupexpression sop, I just want to make sure there is a reason for one or the other.
@ptnum == @numpt-1
@ptnum == `npoints(0)-1`
if you want something that selects last point on all input curves instead of just last point of the input geo, you can do this
vertexprimindex(0, @vtxnum) == primvertexcount(0, @primnum) - 1
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links