Document named outputs syntax
This commit is contained in:
parent
16a11e91af
commit
840701d916
2 changed files with 13 additions and 0 deletions
BIN
book/src/api/basics/cube_tree_named_outputs.png
Normal file
BIN
book/src/api/basics/cube_tree_named_outputs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 108 KiB |
|
|
@ -41,6 +41,19 @@ def cube_tree():
|
|||
|
||||

|
||||
|
||||
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
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
## 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.
|
||||
|
||||
|
|
|
|||
Reference in a new issue