Grasshopper

algorithmic modeling for Rhino

Is there a way to split a list of data ( x number of points ) into  n branches(sets) of x/n points

so for instance I have a list of 28 points and I need to break it up in 4 parts of 7

I have number sliders that control the total amount ( U&V) and the branches are formed by picking i.e the U and the points will then be the number on the V slider...

 

I realize that this question may have been asked before, but I cannot solve it with the path mapper and it seems so easy

 

M

Views: 3190

Replies to This Discussion

What have you tried with the pathmapper?

{A;B} (i) -> {i%4}

 

Best regards

 

DeDackel

something along those lines seem to work, but is there a way that the number 4 can be dynamically inserted in there, through a slider or so , so that it can change to whatever ? that is what I am looking for.. if I make myself clear

I'm guessing it's probably a bit late, but for posterity's sake:

The Tree8 components make PathMapping a bit more parametric. I searched for ages, but couldn't find a successful workaround - this was perfect though.

http://www.grasshopper3d.com/profiles/blogs/tree8-list-management-c...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service