Grasshopper

algorithmic modeling for Rhino

Hi,

I made a grid from points and I split these list of points into pathes, not manually but within the list ( so I have now the first 15 points in a line (0:0:0:0:0) the second series (0:0:0:0:1), etc).

My question is, how can I add a Jitter components to them to make randomized sorts in each pathes - but different shuffling pattern in each pathes?
Thanx!

//Well I can make it split by manually, when I'm creating it with Split List components with a lot of intervals but that does not seem like parametric, cause each time I made changes in the number of points I have to change the intervals and the number of the split list components - BUT with this "solution" I make it easily radomized.

Views: 8257

Attachments:

Replies to This Discussion

Input a list of seed numbers to the jitter component that has the same size as the number of paths, and each number is in its own path (use the graft component for this).
I don't understand this, well, I tried to connect these elements but this doesn't work for me - maybe I misunderstand your ideas.. Can you make a screenshot, just about the connected components? (you don't have to make the list, I'm just interrested in the order after my last component, what you can see on my screenshot)
Thanks!

Thank you, that's what I want! Amazing!
I've got one last question, and sorry for bodering you again..
I want to collect all the first numbers from pathes, then all the second, etc.
I've been created a pattern for that, but how can I connect these two lists together?

Hi all

Im stuck with a very simple task: shuffling elements in a list, in a way they are trully shuffled and not repeating the values again(as in a card shuffling). Is it possible?

using the ramdon will duplicate some values...

This thread is six years old!  Sort by the random values:

Attachments:

there's also a Shuffle component now, you can control how much shuffling you want. Values close to zero will only randomize items a little bit, shuffling factors close to 1 will completely randomize the distribution.

Thanks David.

I will try this, Im still using the old version.

Best

Hi there.

yeah, I know it is old...

The problem with this definition are the repetition of the values... Im using unique colours for colouring different panels.

What I did is to create a larger amount of unique values and ramdon reduce it:

But still not an ideal solution.

Attachments:

Repetition of what values?  The third panel/column in my example contains no duplicate values, just the original sequence of unique values in random order.  The same thing can be done with color values - sort them by random numbers.  Do you understand how 'Sort' works?

wow, I see.

hadnt realised that.

Thanks!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service