Noobini Posted March 21, 2020 Author Share Posted March 21, 2020 (edited) YEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS At long last...I've worked out the preset for this Select Ends: (First/Last of a prim, will work on non curve too...but would probably be next to useless, try the pig ) groupexpression/snippet Ends (or First/Last) vertexprimindex(0, @vtxnum)%(primvertexcount(0,@primnum)-1)==0 As you can see, No, you don't need to use a for each prim loop...just a groupexpression. Edited March 21, 2020 by Noobini 1 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted March 21, 2020 Share Posted March 21, 2020 To select the end points of a polyline simply count the connected neighbours: neighbourcount(0,@ptnum)==1 2 1 Quote Link to comment Share on other sites More sharing options...
anim Posted March 21, 2020 Share Posted March 21, 2020 6 hours ago, Noobini said: As you can see, No, you don't need to use a for each prim loop did you ever need a loop? Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 21, 2020 Author Share Posted March 21, 2020 2 hours ago, konstantin magnus said: To select the end points of a polyline simply count the connected neighbours: neighbourcount(0,@ptnum)==1 arrrg...now you tell me...groan... Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 21, 2020 Author Share Posted March 21, 2020 1 hour ago, anim said: did you ever need a loop? the way i used to do it was groupbyrange, Start 1 End 1, Invert Range, then for multi lines yes i would need to put it thru a for each prim loop or for each connected piece Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 21, 2020 Author Share Posted March 21, 2020 just FYI, recc by a hou.alex.get on SESI forum https://www.sidefx.com/forum/topic/72597/?page=1#post-307209 Now, I'm putting file in: (so hopefully next uninstall/install i won't lose my custom presets) C:\Users\xxx\Documents\houdini18.0\ (note:the entries double up so you'll have to clear out what's already the default contents and include only YOUR custom presets in there) Quote Link to comment Share on other sites More sharing options...
Howitzer99 Posted March 22, 2020 Share Posted March 22, 2020 Yes, definitely put your custom VEXpressions.txt in the user directory, much safer than editing the original file. The user directory VEXpressionl.txt file will get automatically appended to the SESI version, so only add the custom expressions starting from a blank file (not a copy of the SESI version). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.