I run my Python script in the Rhino script editor, which automatically opens a specific gh file and assigns data to some input components.
In this script, I use the gh.AssignDataToParameter method to assign data, and here’s the question: How can I assign a list to a Grasshopper input component (a Data component, for example)?
If I pass a list directly, Grasshopper receives a string (like: “[‘a’, ‘b’]”) instead of a normal grasshopper list. If I use the list_to_tree method to convert the list, Grasshopper receives a single tree object (like tree {2}).
I’d appreciate it if you could give me some advices.