if you are attempting this from a scripting component, this won’t work. You must do this from an external (outside-of-solution-time) dialog or ‘moment’.
Can you tell more about the problem or issue you are trying to solve?
Thanks,
Giulio
–
Giulio Piacentino
for Robert McNeel & Associates giulio@mcneel.com
I’m trying to make a component that packs a mesh into a dict, together with some data, then sends it to a second component which unpacks and joins the mesh.
To join the meshes I’m using:
import rhinoscriptsyntax as rs rs.JoinMesh(meshes)
In the first component, where the dict are packed, the meshes are transformed with:
rs.coercemesh(mesh)
before they are send to the next component.
If I don’t transform them, then JoinMesh won’t work.
If I don’t set the type hints to mesh then JoinMesh returns None.
I have attached a gh file with the components: Type hints.gh (7.0 KB)