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

HopsBitmap or Generic input output #658

Open
seghier opened this issue Apr 7, 2024 · 0 comments
Open

HopsBitmap or Generic input output #658

seghier opened this issue Apr 7, 2024 · 0 comments

Comments

@seghier
Copy link

seghier commented Apr 7, 2024

Hello
Can we add a new Params: HopsBitmap like this?

class HopsBitmap(_GHParam):
    """Wrapper for GH_Bitmap"""

    param_type = "Bitmap"
    result_type = "System.Drawing.Bitmap"

    # Coercer function can be added if needed for type conversion
    coercers = {
        "System.Drawing.Bitmap": lambda b: b,
    }

(https://github.com/mcneel/compute.rhino3d/blob/d34dfa14161aaeb43f0692505dccf7ad30bc84c8/src/ghhops-server-py/ghhops_server/params.py)

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

1 participant