Dear All,
I’ve tried to loop my definitions using Anemone but I have problem to merge data to one list which has the same number of branches (but shifted -1) and what is the most important the same numbers of items in each branch (in this particular example - 20).
When it didn’t work with Anemone I’ve tried C# - the problem with C# is how to:
- choose all items index in each branch of data tree
- shift path -1 data tree
- check if each of branch shifted path data tree contains 0 or 1
- if all of items in each branch is 0 - return 0
- if only one item in each branch is 1 - return 1
In C# code should I try to convert data tree to jaggedArray or there is simpler way like to make shift path data tree based on Grasshopper API?
I hope my question is clear for you. I’ve attached also the file with one iteration grasshopper definition which I want to repeat , my not-working Anemone definitions and C#script.
Looking forward for any advices to move forward in Anemone or C# script.Loops data with Anemone or C# with shift path_final.gh (25.6 KB)