ParamTools icon indicating copy to clipboard operation
ParamTools copied to clipboard

Adjustable attributes

Open hdoupe opened this issue 6 years ago • 0 comments

Goal: Be able to update select attributes on defaults JSON object so that projects may update the value of attributes like the "indexed."

Syntax:

{
    "schema": {
        "additional_members": {
            "indexed": {"type": "bool", "adjustable": true}
        }
    },
    "myparam": {
        "title": "My Param",
        "description": "My demo parameter.",
        "type": "float",
        "value": 10.0,
        "indexed": true
    }
}
params.adjust({
    "myparam": [{"indexed": False}]
})

Effect: Updates value of "indexed" in "myparam" in params._data

hdoupe avatar Aug 23 '19 18:08 hdoupe