compute.rhino3d icon indicating copy to clipboard operation
compute.rhino3d copied to clipboard

HopsBitmap or Generic input output

Open seghier opened this issue 10 months ago • 0 comments

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)

seghier avatar Apr 07 '24 19:04 seghier