from bpy.app.handlers import persistent @persistent def obj_init(scene): if hasattr(bpy.context, "object") and not bpy.context.object.myProp : bpy.context.object.myProp = None bpy.app.handlers.depsgraph_update_post.append(obj_init)