it is impossible for me to invoke a message within a timer app, is it normal? or is it a bug?
for this message system:
import bpy
def ShowMessageBox(message = "", title = "Message Box", icon = 'INFO'): #Message function
def draw(self, context):
self.layout.label(text=message)
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
ShowMessageBox("Such crash", "Many Wow" ,"BLENDER")
if i put him inside any blender timer app loop
import bpy
def ShowMessageBox(message = "", title = "Message Box", icon = 'INFO'): #Message function
def draw(self, context):
self.layout.label(text=message)
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
def every_X_seconds_word():
ShowMessageBox("Hello World", "Many Wow" ,"BLENDER")
return 5.0
bpy.app.timers.register(every_X_seconds_word)
it make blender crash
import bpy
def every_X_seconds_word():
def ShowMessageBox(message = "", title = "Message Box", icon = 'INFO'): #Message function
def draw(self, context):
self.layout.label(text=message)
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
ShowMessageBox("Hello World", "Many Wow" ,"BLENDER")
return 5.0
bpy.app.timers.register(every_X_seconds_word)
i also tried within the app, also crash.
inside of this timer app there's also some operator that cannot work due to context issue ? for example i cannot do a screenshot every X seconds.
how can i bypass this?
status_text_set(string)– HikariTW May 26 '19 at 01:27