Grasshopper

algorithmic modeling for Rhino

I'm trying to define this list: [7, 45, 47, 80] - I'd like it to be flexible, so that I can change those numbers if necessary, but not too flexible (like a bunch of sliders.)

I've tried defining the numbers in a panel, but that just sees them as a text blob. Is there an easy way to do this?


(Alternatively, I'd like to define a list like [True, True, False, True, False] -> for use with the dispatch function. Presumably, this will have the same solution?)

Views: 291

Replies to This Discussion

set Panel componet on Multiline Data (right click)

Thanks a lot, that works beautifully!

Follow-up question: those four numbers represent offsets, and I'd like to loft between the first and second curve, and the third and fourth curves.

Is there a good way to extract those as pairs which can then be fed to the loft component?

(Essentially, I'm looking to transform [7,45,47,80] -> [[7,45], [47,80]])

like this one?

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