diff options
Diffstat (limited to 'doc/python_api/examples/bpy.app.timers.1.py')
-rw-r--r-- | doc/python_api/examples/bpy.app.timers.1.py | 10 |
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) |