Hi,
I’m trying to run commands in a headless document. However, it seems that the commands that work in a non-headless document don’t work in a headless document.
In the example below, I’m being prompted to specify the point position:
import Rhino
doc = Rhino.RhinoDoc.CreateHeadless(None)
Rhino.RhinoApp.RunScript(doc.RuntimeSerialNumber, "Point 0,0,0", False)
doc.Dispose()
However, this works:
import Rhino
doc = Rhino.RhinoDoc.ActiveDoc
Rhino.RhinoApp.RunScript(doc.RuntimeSerialNumber, "Point 0,0,0", False)
What am I missing?
Best,
Johan
Rhino on Mac, 8.10.24228.13002, 2024-08-15
1 post - 1 participant