How do i find from which object the cut is made from?

There’s a bottle model.


It has various cuts named as imprints. Below are the cuts made from the bottle.

In 3D view, I know the cuts are drawn from the 100002-bottle object. But, I want to find this from scripting. How to find from which object the cut is drawn through scripting? Any help is appreciated.

If you make those cuts from within the script then give then eg simply include the org name with in the cut-objects name while you cut.

If not check the object origin against the org objects boundingbox. ( which should be those who dont start with imprint)