Selection history

Hi!

I have a question regarding the selection (rectangular and/or lasso) feature. I would like to know if there is a way to access the coordinates of the shape drawn.
The goal will be to create a history of selections, that can be reused later.

Is there a way to access that?

Thank you a lot,
Regards,
Marion