Add Chromium-only Blender WebEngine parity work
This commit is contained in:
14
blender-5.2.0/doc/python_api/examples/bpy.app.timers.4.py
Normal file
14
blender-5.2.0/doc/python_api/examples/bpy.app.timers.4.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Assign parameters to functions
|
||||
------------------------------
|
||||
"""
|
||||
import bpy
|
||||
import functools
|
||||
|
||||
|
||||
def print_message(message):
|
||||
print("Message:", message)
|
||||
|
||||
|
||||
bpy.app.timers.register(functools.partial(print_message, "Hello"), first_interval=2.0)
|
||||
bpy.app.timers.register(functools.partial(print_message, "World"), first_interval=3.0)
|
||||
Reference in New Issue
Block a user