bpy.app.timers.4.py 333 B

12345678910111213
  1. """
  2. Assign parameters to functions
  3. ------------------------------
  4. """
  5. import bpy
  6. import functools
  7. def print_message(message):
  8. print("Message:", message)
  9. bpy.app.timers.register(functools.partial(print_message, "Hello"), first_interval=2.0)
  10. bpy.app.timers.register(functools.partial(print_message, "World"), first_interval=3.0)