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