compas-dev / compas-actions.ghpython_components

Trying to make Grasshopper development version-control friendlier since 1337.
MIT License
39 stars 6 forks source link

Descriptions missing in procedural mode. #5

Closed funkchaser closed 2 years ago

funkchaser commented 2 years ago

I created a definition for a component in the procedural mode ("isAdvancedMode": false).

What's wrong? In the built component all "description" values are ignored and a default text is displayed instead, except for the very first input parameter.

Example/Demo code.py contains only: c = a+b

metadata.json:

{
    "name": "TestSum",
    "nickname": "TestSum",
    "category": "Componentizer",
    "subcategory": "Test",
    "description": "Tests if the componentizer is working in procedural mode.",
    "exposure": 4,
    "ghpython": {
        "isAdvancedMode": false,
        "iconDisplay": 0,
        "inputParameters": [
            {
                "name": "a",
                "description": "First number",
                "typeHintID": "float",
                "scriptParamAccess": 0
            },
            {
                "name": "b",
                "description": "Second number",
                "typeHintID": "float",
                "scriptParamAccess": 0
            }

        ],
        "outputParameters": [
            {
                "name": "c",
                "description": "Sum of a and b."
            }
        ]
    }
}

Preview: Correct: image Wrong/default: image image

gonzalocasas commented 2 years ago

And done!