I just ran the sample server and set a hops component up with the pointat endpoint.
@hops.component(
"/pointat",
name="PointAt",
nickname="PtAt",
description="Get point along curve",
icon="examples/pointat.png",
inputs=[
hs.HopsCurve("Curve", "C", "Curve to evaluate"),
hs.HopsNumber("t", "t", "Parameter on Curve to evaluate"),
],
outputs=[
hs.HopsPoint("P", "P", "Point on curve at t")
]
)
def pointat(curve, t=0.0):
return curve.PointAt(t)
which looks like this
I then stopped the python server and modified the pointat function to look like this
@hops.component(
"/pointat",
name="PointAt",
nickname="PtAt",
description="Get point along curve",
icon="examples/pointat.png",
inputs=[
hs.HopsCurve("Curve", "C", "Curve to evaluate"),
hs.HopsNumber("t", "t", "Parameter on Curve to evaluate"),
hs.HopsNumber("m", "m", "Multiplier"),
],
outputs=[
hs.HopsPoint("P", "P", "Point on curve at t")
]
)
def pointat(curve, t=0.0, m=1.0):
return curve.PointAt(t*m)
after clicking on the Hops component path and just clicking OK, I end up with the following
What are you doing that is different?