Add scripted_expression helper function

This commit is contained in:
Carson Katri 2022-11-20 18:47:37 -05:00
commit 7001a179c0
6 changed files with 22 additions and 0 deletions

View file

@ -21,6 +21,7 @@
- [Input Groups](./api/advanced-scripting/input-groups.md)
- [Attributes](./api/advanced-scripting/attributes.md)
- [Boolean Math](./api/advanced-scripting/boolean-math.md)
- [Drivers](./api/advanced-scripting/drivers.md)
# Tutorials

View file

@ -0,0 +1,10 @@
# Drivers
Drivers can be used with geometry nodes. To create a scripted expression driver, use the `scripted_expression` convenience function.
This can be used to get information like the current frame number in a Geometry Script.
```python
frame_number = scripted_expression("frame")
frame_number_doubled = scripted_expression("frame * 2")
```