Hi there,
I having some problems with some hops components that I made and used to work. They seem to fail on reading hs.HopsPoint() input. I made an example file and took a screenshot of the error message.
Can anyone help me figure it out?
Best Regards
Fernando
from flask import Flask
import ghhops_server as hs
app = Flask(__name__)
hops = hs.Hops(app)
@hops.component(
"/test",
name="test",
description="test point",
#icon="examples/pointat.png",
inputs=[
hs.HopsPoint("Points", "Point", "Points of the mesh", access = hs.HopsParamAccess.LIST),
hs.HopsInteger('Integer', "I", access = hs.HopsParamAccess.LIST)
],
outputs=[
hs.HopsPoint("x", "x", "Points of the mesh", access = hs.HopsParamAccess.LIST)
]
)
def test(p,i):
x = p
print(i)
return x
#### #### #### #### #### #### #### #### #### ####
# RUN FLASK APP #
#### #### #### #### #### #### #### #### #### ####
if __name__ == "__main__":
app.debug = True
app.run()