I am trying to generate a rectangular within a grid created by GH. one way I was trying is use python to identify the index of the list then connect them.
but I was not quite understand the gh python,
Q1: input x is list of point, why it become a guiID in python?
Q2:I trying to add text dot to the python, but it does not show up
itâs so weird, when I just run the first part of your python, there is an error, âGUIDâ object has no atribute âbranchcountâ, do you know whatâs wrong?
Thanks , I should read the imput data structure.
Also curious, why the th.tree_to_list return , give this âironpython.runtime.listâ, but in python the line 8 give GUID of the points
After using the method plist = th.tree_to_list(pt) the the plist variable references a list of lists (nested list). This isnât a native type for grasshopper so if you want to use it for further processing in grasshopper youâll need to convert it back to a DataTree with the method plist = th.list_to_tree(plist) at the end of your code.
just to dig a little further. " A Data Tree is a hierarchical structure for storing data in nested lists." but seems as you explained, data tree in grasshopper is different than the nested list in python. could you help me understand the data tree in grasshopper more?