ScriptEditor - After project built outputs are not Grasshopper objects

Hello everybody,

most likely it is just because I cannot understand how things work properly but I’m trying to build a project with the new ScriptEditor of Rhino 8.

Rhino - Creating Rhino/Grasshopper Script Plugins

If I use the script in Grasshopper, using the Python 3 Script node, everything works fine and my output are meshes:

I’m using the RhinoCommon in particulare the Mesh class from Rhino.Geometry:

But if I publish the project and I try to use the node it gives me:

Using the ObjectTable class from Rhino.DocObjects.Tables I can “bake” the meshes in Rhino using the AddMesh method and it works ok but I cannot get the meshes inside Grasshopper.

I hope I have explained myself correctly. Thank you in advance for your help.

hmm seems like you are getting a python list on the output on the published component. Let me investigate and I will update this post

Update:

I made this simple project with a Python 3 component that just passes mesh inputs to the outputs and seems like the list converter is working.

Would you mind sending me a simplified example that replicates the error?

PassMeshToOutput.zip (27.3 KB)

Hello, thanks for the answer I tried to open your file and I get the same results:

Honestly I don’t know what may have caused it.

Okay found and fixed the bug and will put it in 8.17. Thanks for reporting :smiley:

RH-85710 Output parameter does not marsh Python list into dotnet list

3 Likes