From dcb86689b037e545b08ff35c355db08889b73ef1 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 27 Nov 2018 11:31:35 +0100 Subject: Python API Docs: Examples for new timer api --- doc/python_api/examples/bpy.app.timers.1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/python_api/examples/bpy.app.timers.1.py (limited to 'doc/python_api/examples/bpy.app.timers.1.py') 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) -- cgit v1.2.3