I’m running into an issue with a Python script, in which I have a Rhino PolylineCurve object and I need to extract the centroid of that object. When I print the object in the Python window, I get this text:
<Rhino.Geometry.PolylineCurve object at 0x000000000001C835 [Rhino.Geometry.PolylineCurve]>
the object is called by the variable ‘zone_crv’
Now I run this command on the object:
zone_cp = rh.AreaMassProperties.Centroid(zone_crv)
…and I get this error:
Runtime error (ArgumentTypeException): getset_descriptor is not callable
What am I missing here? Seems I need to convert this object to something else that’s callable, but I can’t find anything online about this issue or how to solve it.
Thanks in advance!