I have an operator that needs an object in order to work, but here's the trick, it is required to use some sort of picker GUI in order to select the object first before execution() (instead of using the more traditional bpy.context.selection or active)
It is for creating a paint bucket tool or something similar
Note that blender does have such "pick before execute" behavior by default, for example you can use
def invoke(self, context, event):
context.window_manager.fileselect_add(self)
return {'RUNNING_MODAL'}
to select a filepath before execution, well I want to do exactly the same thing but with a bpy.props.PointerProperty(type=bpy.types.Object) instead of a filepath
unfortunately I didn't find any function similar to fileselect_add(), I was hoping for something like objectselect_add() sadfly it does not exists, does he?
so now I'm stuck as I don't have any picker method at my disposal
I suppose I need to go modal? i don't have any modal experience, is there a similar project I can take a look at?
