Use .ghcluster from within script?

Is it possible to use an external .ghcluster from within a script (c# or python)?

I’d like to accomplish something like this:

  private void RunScript(object path, object input, ref object A)
  {
    var cluster = Cluster.Load(path);   // e.g. "c:/users/sample.ghcluster"
    cluster.In = input;   // assuming a cluster with one input called In
    A = cluster.Out;   // assuming a cluster with one output called Out
  }
2 Likes