Skip to main content
ShiveringCactus
Community Expert
Community Expert
August 10, 2026
Question

Tutorial: Adding rounded corners to a mask

  • August 10, 2026
  • 5 replies
  • 34 views

Ever wished you could smoothly round the corners of a Mask Path like you can with a Shape Layer? Now you can with a simple slider.

 

This video is in 2 parts. In the first minute or so, I show the script in action. Just draw a mask on your layer, then run the script and adjust the roundness value. And that's all you need!

 

But, if you're curious how I did it, I then talk you through the code, breaking down each element so you can gain an understanding as to what's possible when you mix path points, the Kappa constant and createPath();

 

 

    5 replies

    BHSal
    Known Participant
    August 10, 2026

    Sorry but this is ridiculous. A 7 minute tutorial covering a ridiculously long expression for something that can be done with mattes. Not useful. 

    ShiveringCactus
    Community Expert
    Community Expert
    August 12, 2026

    Sorry you feel thay way. The first part of the tutorial covers using the script.  I then spend the second half talking through the code.  I like to share coding tricks that hopefully inspire others.  For what it’s worth, I think shape layer masks solve almost all the isses where you might need rounding but… there’s always edge cases.

    But I’ve got some great news for you.  If you don’t want to watch it, you don’t have to 😉

    Nishu Kushwaha
    Community Manager
    Community Manager
    August 10, 2026

    Thanks for putting this together, ShiveringCactus. Really great tutorial and a nice contribution to the community. Appreciate the work you're sharing here.


    Thanks again,

    Nishu