notes/Projects/bachelor/NODE_REGISTRY.md

61 lines
887 B
Markdown
Raw Permalink Normal View History

2024-03-20 17:22:37 +01:00
# NODE_REGISTRY
# How to store nodes in the registry?
The nodes need:
## ID: string/string/string
I could imagine something like jimfx/nature/branch
## INPUTS:
We need a way to define how the UI should render the input ui. Could be something like:
```json
{
"inputs": [
“a”: {
“type”: “select”,
“options”: [
“curly”,
“straight”
]
},
"b": {
"type":"float",
"value": 0.5,
"max": 10.0,
"min": 0
},
"res":{
"type": "integer",
"value": 5,
"setting":"leaves/resolution"
}
]
}
```
## OUTPUTS
The nodes output, could look something like this:
```json
{
"outputs": ["stem","float"]
}
```
# How to store serialized nodes
```json
{
"id":"jimfx/nature/branch",
"inputs": [0,8.4],
"position": [0.6, 10]
"meta": {
"title":"Branch Node"
}
}
```