Clusters is not freeing up RAM?

,

Hi @eirannejad

I still think this is an issue. In the code in the previous post, I’m not using a headless doc.
I tried the code below but it doesn’t work. I am unsure if I’m doing it wrong or if the grasshopper player is not working with a headless doc?

Regardless I understand the grasshopper player to be a tool that is meant to be used while modelling in Rhino, to do some complex geometry manipulation. If RAM is not freed after this operation I think there is an issue.

import Rhino

for i in range(5):
    doc = Rhino.RhinoDoc.CreateHeadless(None)
    opened = doc is not None
    if opened:
        doc_id = doc.RuntimeSerialNumber
        Rhino.RhinoApp.RunScript(doc_id, "-GrasshopperPlayer /Users/johanpedersen/Desktop/RhinoForum/clusters/file_to_run.gh", False)
        doc.Dispose()