mcneel / computeclient_py

compute_rhino3d python client for compute.rhino3d.com
MIT License
2 stars 5 forks source link

bug(subd): ToBrep fails due to returned list #5

Closed tsvilans closed 4 years ago

tsvilans commented 4 years ago

Line 13 in SubD.py fails due to Util.ComputeFetch(url, args) returning a list instead of a single object. Sometimes this list has a null object in it as well

Possible fix would be to filter the list and return the only resulting object: response = [Util.DecodeToCommonObject(o) for o in response if o is not None][0]

sbaer commented 4 years ago

@pearswj does your PR at https://github.com/mcneel/computeclient_py/pull/7 fix this issue?

pearswj commented 4 years ago

Yes, it does, though I had to change the endpoint as suggested in #4 to test it.