Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-11-27 13:31:35 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-27 13:31:48 +0300
commitdcb86689b037e545b08ff35c355db08889b73ef1 (patch)
tree62facf17880ca5596331a642b22f916fd59e1857 /doc/python_api/examples/bpy.app.timers.1.py
parent39dcf6a10a53c49d3c1339755181dfce233f7b3d (diff)
Python API Docs: Examples for new timer api
Diffstat (limited to 'doc/python_api/examples/bpy.app.timers.1.py')
-rw-r--r--doc/python_api/examples/bpy.app.timers.1.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.app.timers.1.py b/doc/python_api/examples/bpy.app.timers.1.py
new file mode 100644
index 00000000000..bae3b94b24a
--- /dev/null
+++ b/doc/python_api/examples/bpy.app.timers.1.py
@@ -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)