Does anyone know why this bit of code inside a custom python component does not work?
for i in range(len(circles)): domain = rs.CurveDomain(circles[i]) domain /= 2.0 circles[i] = rs.TrimCurve(circles[i], domain)
Trying to trim a circle but it keeps returning:
Runtime error (NullReferenceException): Object reference not set to an instance of an object. Traceback (most recent call last): SystemError: Object reference not set to an instance of an object.