Let’s take a look at the renderings first.

Tutorial:
1. Open the picture, select the Rounded Rectangle Tool, click the "Path" icon in the property bar above, and pull out a rectangle on the picture.
2. Hold down Ctrl+Alt and drag the rectangular frame at the same time, copy 4 of them, use Ctrl+T to rotate the frame as shown in the picture, and arrange the position.
3. Right-click on the rectangle - create a selection, Ctrl+J to copy the selection to a new layer, then return to the original image and copy the other three boxes as well.
4. Go to the action panel, create a new action, and click the record button.

5. Double-click layer 1 and set the layer style projection and stroke. The projection parameters are as follows: