Grasshopper

algorithmic modeling for Rhino

Hi All,

I have a question / feature request about clusters. Is there a way to determine the input type and structure of a cluster like in a C# component? This for me is one of the biggest issues of scaling functions in grasshopper using clusters. When I make a function I end up testing it with lists/trees (plus combinations of those when I have multiple inputs) to see how it responds. Shortest Lists/Cross Reference are nice but they don't always help in this case. The most helpful I've found is to use "Stream filter" to determine if I have a list or a tree and treat the data slightly differently depending on the case. Another way to approach this was to use Anemone / Hoopsnake, when I had a function which could deal one input at a time. Finally I have also seen grasshopper's rival Dynamo to "apply" the function on a tree using a mapper component. 

Is there a proper way to deal with this problem that I am missing?

Cheers,

Stam

Views: 342

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