tbone Posted April 24, 2022 Share Posted April 24, 2022 Hello, i need some help, i think im just blind. I have a triangle made from 3 lines and later getting extruded but i need the second shortest/longest line and its center point because the lines are generated with with a random number from a range. Sort and with get item i can filter it but the value of the line is not getting through there so i cant get the center. Do i need to do some python scripting here and create a completely new node or can i do this with the existing nodes? What i found so far is only something with list([-1]) and with that i would get the index before the last index in the list as an output and this would be perfect for my case but i dont know how to create or modify such a node. Quote Link to comment
Marionette Maven Marissa Farrell Posted April 26, 2022 Marionette Maven Share Posted April 26, 2022 The easiest way to do this would be to place the line lengths and line objects into a sortable list (which in my example I use a point node to make tuples) Get Shortest Line.vwx 2 Quote Link to comment
tbone Posted May 4, 2022 Author Share Posted May 4, 2022 Thanks! Sorry for the late reply. Wasn't thinking that way to do it. Completely different approach than what i got from my professor. Many ways to do it but first you need to discover them 🙂 1 Quote Link to comment
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.