[Grasshopper Connector] Branch count limit

In case anyone else catches the same problem I created a really quick and dirty solution:

using Speckle.Core.Api;
using Speckle.Core.Credentials;


  private void RunScript(string id, ref object StreamBranches)
  {

    Account account = new Account();
    account.token = "USER-API-KEY";
    account.serverInfo = new ServerInfo{
        url = "https://speckle.xyz"};
    Client client = new Client(account);
    var currStream = client.StreamGet("STREAM-ID", MaxBranchCount).Result;
    StreamBranches = (currStream.branches.items);



  }

I’ll try to update it when I have something more polished!

3 Likes