Is it possible to detect changes in object and collection selections or activations (
bpy.context.object/collection)? I'm most interested in detecting changes in the active object and active collection.
If there currently is no way to receive events for selection or active object changes, what is best practice for setting up a looping processing function for an add-on? Would I need to add some type of timer? Or is there a handler that would work good for this?
My intention is to figure out which type of object was activated most recently - a collection or an object, so I can draw controls that relate to that object type. I'm currently just drawing both, but it takes up a lot of space.
Is there possibly some type of "activation_time_stamp"? Or anything that would help?