blender/doc/python_api/examples/bpy.app.timers.1.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
180 B
Python
Raw Normal View History

"""
Run a Function in x Seconds
---------------------------
"""
import bpy
2019-11-01 10:53:47 +11:00
def in_5_seconds():
print("Hello World")
2019-11-01 10:53:47 +11:00
bpy.app.timers.register(in_5_seconds, first_interval=5)