Flat python list errors with latest Rhino WIP version

using rhino_en-us_8.0.22361.13135.

Flat python lists from Rhinocode are resulting in a Data Conversion Failed from Goo to Surface Error. This same code worked using the previous Rhino WIP version.

An example Rhinocode code list is [ <Rhino.Geometry.Sphere …>, <Rhino.Geometry.Sphere …>]

Does anyone have advice on how to resolve this error ? Thank you.

Would you mind sharing the script? I’d like to see how the spheres are created

import Rhino
import Rhino.Geometry as rg

lines = [  ]   
spheres = [  ]                   


...

obj2 = rg.Line(x1,y1,z1,x2,y2,z2)
lines.append(obj2)

...

sphere = rg.Sphere(rg.Point3d(x2,y2,z2),branch_size_new)
spheres.append(sphere)

where x1, y1, z1, x2, y2, z2, branch_size_new are numbers

1 Like

did you get a chance to look into this and/or did you need any additional information ?

@Gary_Stump Trying to figure out another bug but I’ll get this resolved so it could be inlcuded in next week’s WIP release. Sorry for the slow process and bugs

ok thank you for the update

@Gary_Stump I forgot to say Welcome to the Rhino forum :smiley:

I applied a fix for this that should resolve the issue. Hopefully it will be included in the WIP release tomorrow. Screenshot below shows python component with a similar code spitting out a list of spheres

Thank you. We will download the latest WIP version.

RH-72331 is fixed in the latest WIP