Grasshopper

algorithmic modeling for Rhino

Hi,

This question has to do with tree structure within a C# component.
When i input a nested array in a C# component, how do i acces, say, subarray 0:0:1 of that array?
in GC i would be able to call it like this: MyArray[0][0][1].DoSomething....

What is the priciple/syntax in grasshopper C#?!

thanks

Views: 252

Replies to This Discussion

Tree structure as an input parameter is not supported yet.
Your best bet is to feed one branch as a list to your C# component and access your element this way. this is not a good solution in most cases when you need to access all the tree at once.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service