Main question:
in my addon, i create a python-thread, for do not blocking UI. (1) its wrong?)
thread created on checkbox-"on", and destroyed on "off". problem when checkbox is "on". when i close blender, blender does not close :)
i find this solutioin, but not work for me, callback not fired
i need thread for "filewatch", and do something on os "file-modified" event
how can I solve this problem?
sub question
i have a class extends from bpy.types.PropertyGroup and
checkbox-property = bpy.props.BoolProperty(
name="Switch",
description="",
default=False,
update=checkbox_update_handler
)
default=false not work in some cases.
how i can set always false, when blender\or new file startup
Thanks!
bl_options = {'SKIP_SAVE'}on an operator property, makes it return to default after use. (not sure if / how it works for other props. It's been my experience that threads and blender don't play well together if you are referencing blender data from the thread. Might find this recent post interesting on auto-updating changed text files. – batFINGER Jul 19 '18 at 12:45