Grasshopper

algorithmic modeling for Rhino

Hi guys,

Relative noob to Grasshopper here (I'm taking an intro course at university right now, but still in the dark on a lot of how this works).  I'm working on an attractor pattern, and would like to filter a list to remove items that equal 1.  For example, I have remapped a list which determines the scale of my 690 objects (from 0.1 - 1.0), and I want to disclude all of the 1.0s.  I stumbled upon the Smaller Than component, which gives me a True/False list, but I simply want my list to reduce to about 20 (by culling/filtering any values that are 1.0).  How would I go about doing this?  Thanks in advance for your expertise.

JP

Views: 19516

Replies to This Discussion

Thanks Chris, this was just what I needed.

JP

thanks chris. this really helped me!

really useful, thanks!

EDIT:
I apologize Chris, I did not see your reply.
JP use Chris solution.

Hi JP,

From what you said, this is what you need:


There is just one problem:

In order for attractor/repeller to work correctly it needs to have the same number of objects scales, as objects . But you want to have less object scale values than actual objects?
Or you want to remove those objects also (the ones with distance from attractor point = 1)?

See the attached .gh file (btw create one point in Rhino, and assign it to that green "point" parameter you see in the screenshot above).

Attachments:

No apologies necessary. 

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