Document named outputs syntax

pull/4/head
Carson Katri 2022-12-09 15:55:32 -05:00
rodzic 16a11e91af
commit 840701d916
2 zmienionych plików z 13 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 108 KiB

Wyświetl plik

@ -41,6 +41,19 @@ def cube_tree():
![](./cube_tree_int.png)
By default, each output is named 'Result'. To customize the name, return a dictionary.
```python
@tree("Cube Tree")
def cube_tree():
return {
"My Cube": cube(),
"Scale Constant": 5
}
```
![](./cube_tree_named_outputs.png)
## Group Input
All arguments in a tree function must be annotated with a valid socket type. These types are provided by Geometry Script, and are not equivalent to Python's built-in types. Let's add a size argument to our Cube Tree.