Jump to content
Developer Wiki and Function Reference Links ×

sort 3 lines by length and filter one specific to get its center point


tbone

Recommended Posts

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.

 

 

probl.PNG

Link to comment
  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...