Add scripted_expression helper function
This commit is contained in:
parent
1cdd975dbf
commit
7001a179c0
6 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
10
book/src/api/advanced-scripting/drivers.md
Normal file
10
book/src/api/advanced-scripting/drivers.md
Normal 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")
|
||||
```
|
||||
Reference in a new issue