algorithmic modeling for Rhino
List length is an integer! Unless you run it through a text panel. Post code. You will save time and get better results.
Hi,
be aware that list.Length != list.Count.
I think you need list.Count. (list.Length is the capacity of your list)
For Arrays you can use array.Length
Cheers,
Raul
eh, what? In .NET, List.Count and List.Capacity are not the same thing (Count = number of items actually contained in the list, Capacity = number of items the list could potentially contain before it has to allocate more memory), but that has nothing to do with GH components.
yep, that's true!
But without code, i can't see if its a native GH component or a C# one...
The List Length component allways outputs a int and it works perfect.
Hey everybody!
Thanks for your answers!
I got the solution :
Listlength and flaten it!
that's the flatten that allow to obtain the integer!
Thanks!
Genius! (sarcasm) You have a lot more to learn about data trees...
Him and me both. Thanks for the tips! Be nice!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by