Grasshopper

algorithmic modeling for Rhino

I have a surface that ive divided into 12 parts horz and vert. what im trying to do is cull out a random gradient of the panels. 

so the top would keep 90% of them and then the bottom would only keep 10% of them

Views: 5795

Attachments:

Replies to This Discussion

Like this? (test surface is - hopefully - internalized)

Attachments:

yeah except that is too sequential. how would you randomize it so the pattern appears more like a random bar graph instead of a set of stairs. I almost have it figured out i think. just needs some tweaking to get it to do what i want. thanks

All what you need is the rollTheBones and loadedDice booleans.

 chaos is good, order is bad.

Attachments:

Oops forgot the casablanca int slider. Add some and re-roll the bones.

Attachments:

Hello Josh, guys,

If you want to control culling with percentages* you can do something like this:

*Of course with rounding up, as you cannot remove exactly 10% of 12 objects (without slicing them).

Attachments:

thanks this is pretty much exatly what im looking for. i figured that part out but now im having trouble getting the inverse of those squares

Hello Josh,

If you want to have the culled squares as well as the remaining ones you will need to replace [RandomReduce] with [SplitList] but then you must first shuffle each branch with [Jitter] so that you have a random pattern:

btw

@David Rutten: Couldn't [RandomReduce] component output the culled items as well? The space for an extra output exists (3 inputs->1 output) and hopefully this wouldn't be much work for you. It could be renamed to [RandomSplit] or something, to be more self-explanatory.

Hi Nikos, I agree it makes much more sense for components like Random Reduce, Cull, etc. etc. to insert nulls into the data rather than to shuffle data around. Makes it a lot easier to keep data lined up between distant regions of the file. A lot of components need to be rethought and made to work more consistent, but I don't think it will happen for Grasshopper1. 

I usually do it like this:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service