Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with HopsPoint/LIST input #533

Open
wmich opened this issue May 31, 2022 · 1 comment
Open

Issue with HopsPoint/LIST input #533

wmich opened this issue May 31, 2022 · 1 comment

Comments

@wmich
Copy link

wmich commented May 31, 2022

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.
image

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
image

@sperrault
Copy link

Hi, just to confirm, I have the same error since Hops 0.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants