Python API Docs: Examples for new timer api
This commit is contained in:
10
doc/python_api/examples/bpy.app.timers.1.py
Normal file
10
doc/python_api/examples/bpy.app.timers.1.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""
|
||||
Run a Function in x Seconds
|
||||
---------------------------
|
||||
"""
|
||||
import bpy
|
||||
|
||||
def in_5_seconds():
|
||||
print("Hello World")
|
||||
|
||||
bpy.app.timers.register(in_5_seconds, first_interval=5)
|
Reference in New Issue
Block a user