Hello everyone
When I use the Data Tree encountered a small problem,I am surprised x.Branch (paths [1]) return data type 'List [object]'instead of List,Needs by list [Branch (i)] convert list type,This very troublesome,Thank you all for your help
Ghpython pro.gh (9.2 KB)
Hi Naruto,
Branch method always returns a typed list. Check the Grasshopper SDK documentation.
The issue is that originally rhinoscriptsyntax functions were not made with Grasshopper usage in mind. Later on, they were able to be used in Grasshopper. So basically from time to time users find small bugs like this.
As you already did, using built in list() function fixes the problem.
1 Like