You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/src/api/advanced-scripting/node-groups.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,4 +22,25 @@ The *Instance Grid* node group uses the passed in `instance` argument to create
22
22
23
23

24
24
25
-
This concept can scale to complex interconnected node trees, while keeping everything neatly organized in separate functions.
25
+
This concept can scale to complex interconnected node trees, while keeping everything neatly organized in separate functions.
26
+
27
+
## Functions vs Node Groups
28
+
29
+
You do not have to mark a function with `@tree(...)`. If you don't, function calls are treated as normal in Python. No checks are made against the arguments. Any nodes created in the callee will be placed in the caller's tree.
30
+
31
+
```python
32
+
definstance_grid(instance: Geometry): # Not marked with `@tree(...)`
0 commit comments