Grasshopper

algorithmic modeling for Rhino

Is there a way to make a function that says {n * true, n * false} that can be plugged into a cull pattern or dispatch? Ive run into numerous issues with lists where i want to cull out say every second list AND every second element (diamonds).

ex "false false false false true true true" based on sliders with integers "4" and "3"

If i could create this kind of function my life would be so much easier.

img attached showing what im working on now
To clarify, in that image i want to switch off no.s 5,6,7,8,9,10 16,17,18,19,20,21 - etc

thanks

Views: 502

Attachments:

Replies to This Discussion

I don't quite get what you need, is it something like this?
Image
Attachments:
that looks like it! let me decypher for a bit.. do you use this often?
I have never no, quickly threw it together. I think the main thing for you to know is that numbers of 1 or higher will be converted to True values and 0 to False automatically when plugged into any input that looks for a Boolean value. So all you need to do really is make a definition that spits out the 1's and 0's you need.
yea saw that, its precisely what i need. I think this may come in handy quite a bit in future as it generally offers a very flexible way of culling which i like. I suppose its true what they say that everyone uses gh their own way
thanks by the way

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