mcneel / compute.rhino3d

REST geometry server based on RhinoCommon and headless Rhino
Other
301 stars 189 forks source link

HopsBitmap or Generic input output #658

Open seghier opened 7 months ago

seghier commented 7 months ago

Hello Can we add a new Params: HopsBitmaplike 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)