Grasshopper

algorithmic modeling for Rhino

Hi,

I have simplified the issue I have to solve on ongoing project.

I have a list of 2 2D shapes (A and B); after Random Reduce I got the shape B. How can I get shape A ? I've tried with Dispatch, Cull Index but no success. 

Any idea? Thank you very much

Views: 508

Replies to This Discussion

Well if you reduce  2 items by 1 means you are only gonna get one. Change the seed value and you may or may not get A (remember its random) The seed is what shuffles the random value. If you want to grab A just use list item. 

Hi.

Check this as well.

Attachments:

Thanks! @Hyungsoo Kim that works awesome!!

Wait is the idea to just randomly split a list of items? If so why not just use sift? the nice thing with sift is it holds null values in the list which can then easily be combined back via the combine component. 

Attachments:

Yes Michael,

that's the idea! Everything works fine now :)

Cheers!

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