Hi, I have a GhPython script component which I am inputting a Referenced Curve as a Type Hint (GUID) as an Item Access.
In the script, I wish to convert the GUID into a curve using rs.CurvePoints, however, it throws an error “Unable to convert into Curve geometry”
I have attached a screenshot of my grasshopper canvas + uploaded part of the code below. Any help would be greatly appreciated, im rather new to Python in GH.
Python code start:
import rhinoscriptsyntax as rs
class Chain():
def __init__(self, POLYLINE, STIFFNESS, RAD, MASS, MAXVEL, DAMPING):
self.poly = POLYLINE
self.stiff = STIFFNESS
self.rad = RAD
self.mass = MASS
self.maxvel = MAXVEL
self.damping = DAMPING
self.vtxs = rs.CurvePoints(self.poly)
self.nodes = []
self.springs = []
… (removed some code)
Ch = Chain(P, S, R, M, V, D)
Code end

