“scriptcontext.doc” doesn’t quite understand this method; is it injecting geometry into the “rhino” document?
scriptcontext.doc = rhinocommondApi inside doc?
Is the following code snippet injecting an object into rhino?
import scriptcontext as sc
if rc == Rhino.Commands.Result.Success:
for i in range(0, len(meshes)):
id = sc.doc.Objects.AddMesh(meshes[i], attributes[i])
if id != System.Guid.Empty:
sc.doc.Objects.Select(id, True, True, True)