Creating an Elliptical Ring and integrating it into the routine Help

To the touch up code I prepared as Photoshop Java Script. In addition
1: Creating an Elliptical Ring
2: Determining the Amount of Softening According to the Amount of Space Occupied by the Head (User to Choose Manual)

It will also be possible to retouch the parts outside the ellipse shape. The purpose is softening and determination of hardness.