Working with a large number of objects (enough to create performance issues) and planning on assigning custom properties to them at unpredictable, disconnected intervals. Would like to return a list of any “tagged” objects in the scene rapidly. Ideally the implementation would involve a process similar to an SQL-like WHERE statement.
some_object["custom_tag"] = 1 bpy.data.objects.get("custom_tag")
This is the current solution:
objs_list = [obj for obj in bpy.data.objects if "custom_tag" in obj]