This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
geometry-script/api/static/input_group.py
2022-11-17 18:13:07 -05:00

17 lines
No EOL
409 B
Python

class InputGroup:
"""
A group of inputs that will be expanded in the node tree.
All properties must be annotated:
```python
class MyInputGroup(InputGroup):
my_float: Float
my_bool: Bool
my_string # Invalid
```
"""
def __init__(self, **kwargs):
for p in dir(self):
if p in kwargs:
setattr(self, p, kwargs[p])