@worker1 I don’t quite understand what you are trying to do.
The shapes are stored in the figure.layout.
Here is an example how to access and change them: