I saved a mesh as a .dat file using pickle and call back to a python component in rhino
however, I found that the rs.projectcurvetomesh function does not accept the mesh file
but when i pass the mesh variable from one py component to another one
it works again.
I see. however, there is no Add method in sc.doc. is that in a different path?
update: I found Add in sc.doc.Objects.Add. and it works so fine
I am quite confused about the meaning of the documents.
in my mind, it seems that guid type is used in ghdoc. It means that I have to change the document to Rhino doc to open the file i call back from the .dat file?
Grasshopper does not have native components for text that is geometry. What is available, are RhinoScript command that edit the Rhino document directly. That’s why you need to switch target.
I got it. It seems Rhino commands are more primary to use with python, no need to change formats first. But I think it is quite hard to learn
thanks again for everything