Can hops export data tree (or 'list of lists')?

Hello everyone,

I need export points in different layers (say, 5 layers, and each layer has 10 points) from Hops.
I created points using rhino3d.Points3d, then append them of each layer in layer list layer[…], then the layer list is appended in the final list ptall[…].
When I try to export using hs.HopsPoint, it shows the error
“1. Solution exception:Cannot deserialize the current JSON array (e.g. [1,2,3]) into type ‘Rhino.Geometry.Point3d’ because the type requires a JSON object (e.g. {“name”:“value”}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {“name”:“value”}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path ‘’, line 1, position 1.”

Could anyone help me fix the issue? Thanks a lot in advance!!

Hi - did you ever find a solution to this?

Hi,

I was just wondering if you got a solution on this one at all?

I have a similar problem where the data structure of something I want to return is a tree of lists and when I context bake it back it returns nulls and when I context print it returns ‘IronPython.List’ as a str

Just wondering if/how you tackled so I could steal your approach :sweat_smile:

Cheers, Pete