You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like there is a problem with point list input in Hops since 0.14.0.
I'm getting 1. point_list requires at least 1 items for a parameter that does have valid input.
This is the code of the component that I'm running:
from typing import List
import ghhops_server as hs
from Rhino import Geometry # type:ignore
from lib.hops_wrapper import HopsWrapper
@HopsWrapper.hops.component(
'/test_inputs',
name='TestInputs',
nickname='TI',
description='Test inputs 0.14.1',
category='Utils',
inputs=[
hs.HopsPoint(
'point_item',
'PI',
'Point ITEM input',
hs.HopsParamAccess.ITEM
),
hs.HopsPoint(
'point_list',
'PL',
'Point LIST input',
hs.HopsParamAccess.LIST
),
],
outputs=[]
)
def test_inputs(pt1: Geometry.Point3d, pts: List[Geometry.Point3d]):
print(pt1)
print(pts)
return
The same component works fine with Hops 0.13.1
The text was updated successfully, but these errors were encountered:
Seems like there is a problem with point list input in Hops since 0.14.0.
I'm getting
1. point_list requires at least 1 items
for a parameter that does have valid input.This is the code of the component that I'm running:
The same component works fine with Hops 0.13.1
The text was updated successfully, but these errors were encountered: