In one of our title, we received more anchored objects and due to this many are getting overlapped with each other. While re-fixing them we missed few unknowingly. So we'd like to fix a validation in Script to identify the anchored objects which are overlapping while running the script, could anyone advise on this?
Anchored objects, like all PageItem objects, have a geometricBounds property, that is an array of 4 coordinates.
Simply go page by page, gather all anchored objects and test if the geometricBounds of any of them overlap.
We understood that we need to compare the values between the anchored objects based on the bounds, could you please give some sample coding like how these values can be compared whether by adding some values or any other logics?
Have you tried a google search for bounding box collisions? It's about 5 lines of code!