Convert Frames into shape object

Suppose there are multiple frames in one frame. there should be an option to convert the frames into objects or rectangles with the same properties.