Jump to content
You must now use your email address to sign in [click for more info] ×

Create & Edit Masks with Red Overlays


smadell

Recommended Posts

I am attaching a set of macros that allow the creation and editing of layer masks using a red overlay to assist in the process.

*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *

Creating masks in Affinity Photo is fairly easy. Either create a new Mask layer and paint on it, or use the Selection tools to select the appropriate area and then create the mask to incorporate the selection.

The absence of a red overlay when creating an initial mask can be overcome by using the Quick Mask tool, which allows the user to create a selection with the visual aid of a red overlay. Once the Quick Mask view has done its thing, (i) turn the Quick Mask off; and (ii) create the new mask layer.

Editing an existing mask is less straightforward. In order to edit a mask, you can paint in black, white, or grey while the mask layer is selected. Or, you can look at the mask in "isolation mode" to do your painting. In the first case, you don't get any type of red overlay to indicate what's masked and what's not; in the second case, you can't see the image being masked in order to tell where your mask needs editing.

Up until now, there has not been a good workaround. This set me thinking...

*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *

I am attaching a set of macros called Create/Edit Masks with Red Overlay. This is a set of 4 macros inside a macro category (and, therefore, import it through the Library panel).
The first two are for creating masks utilizing a red overlay. They are an alternative to using Quick Mask to create a selection and then use that selection to create a mask.

More importantly, however, the last two macros are for editing an existing mask with the benefit of a red overlay, being able to visualize the image being masked underneath.
[Note: these macros will not create, and will not adequately edit, vector based masks. They are exclusively for use on pixel based masks.]

Here are step by step directions for using the macros. I will use a photo of the USS Midway in my examples.

Original.thumb.jpg.85086e401cc000e8950886f361a2bd0d.jpg

1) Create Mask with Red Overlay - Set Up

Click on the first macro. This will create an empty mask layer (one which starts entirely black) embedded in a group. The various other layers in the group provide the red overlay - leave them alone. Paint with white or black (just as you would with the Quick Mask) in order to reveal or conceal areas of the underlying photo. The image below shows a mask with the body of the ship painted in white, and the rest of the mask black.

1796154502_1)CreateMask-SetUp.thumb.jpg.139ccb6a6ce31d2a5ccbefff58951103.jpg

2) Create Mask with Red Overlay - Finalize

Once you have created the mask as you might like it, click the second macro. This will place the newly created mask at the top of the layer stack, and it will be named "Mask - Drag to Desired Position." Obviously, you should position the new mask as you would like. The image below shows the result of the second macro, before the mask is repositioned.

122294638_2)CreateMask-Finalize.thumb.jpg.82eb0d0d59ae76c2dc69d8f9e8b5edd3.jpg

3) Edit Mask with Red Overlay - Set Up

Here's where the fun starts. You need to have a mask that you want to edit, and it needs to be selected. The mask should be a child of the pixel or image layer, and should not be further nested. (In other words, it should be a child of the image, but not a grandchild.) Click on the third macro. Your selected macro will be hidden and a copy of it will be placed into a group that sits above the appropriate image. The macro copy is named "TemporaryMaskForEditing." Edit that mask using black or white paint, just as you would any other mask. The difference here is that all this is constructed to allow you to see the photo while you are editing the mask. Just as in the Quick Mask setup, the white portions of the mask will reveal the photo below normally but the black portions of the mask will also show the photo, but covered with a red overlay.

The image below is the immediate result of clicking the third macro.

389434218_3a)EditMask-SetUp.thumb.jpg.28fa384f994445f9a32bc574732916ad.jpg

And, the next image shows an edited mask after using black and white paint on the mask layer.

9518713_3b)EditMask-SetUp.thumb.jpg.0a078de8ba71faac44eaaef76b700f6c.jpg

4) Edit Mask with Red Overlay - Finalize

Click on the fourth macro with the edited mask selected. The edited mask will be placed as a child in the photo, the old mask will still be there but remains invisible, and all the other stuff is deleted. The image below shows the result of the 4th macro.

2081011905_4)EditMask-Finalize.thumb.jpg.9c3d56d735885d2907036af35ce69a5e.jpg

*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *

No guarantees are made, and there are certainly some scenarios where this might not work. But, if it fulfills a need for you, it's yours.

Create:Edit Masks with Red Overlay.afmacros

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

Hilltop...

Without going too deep into the weeds, creating and editing the masks are done outside of the original photo, and don't actually mask the photo itself while you're working; they mask the red overlay layers. Each portion (the 2 create and the 2 edit macros) come in two steps, each; the first is to set up the mask for creating (or editing) and the second is to put it into position. (i.e., click step 1 to set up a mask, then click step 2 once you've completed it; click step 3 if you want to edit a mask, then click step 4 once you've finished your editing.)

I guess the take-home message is that it's not necessary to look at the structure too carefully; just use the masks as if they were in their traditional place and form.

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

I made 2 little videos, one for Creating a New Mask and the second for Editing an Existing Mask. Sometimes watching the process helps it make more sense. So...

1) Creating a New Mask

2) Editing an Existing Mask

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

  • 7 months later...

@smadell  Thank you so much for these wonderful macros!   I had bookmarked this back in 2019, but being quite new at photo-editing and not having a clue about macros, I set it aside for later.  Only now, going through a lot of things I always thought I wanted to know, I discovered these yesterday!   They are absolutely superb and make "masking" actually easily intelligible to the Great Unwashed (me) for the first time, no matter what I have read and done.    Today, when I wanted to thank you so much, I entered Create & Edit Masks with Red Overlays -- exactly like your topic title, above -- and received a "no such topic" response in the Forum search.   Not to be foiled, I settled down to search every single topic regarding "macros"  and finally found you on page 14.

I hope by making this entry I can bump your wonderful macros to the top of the pile once again.  Thank you so much! 


24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.  Photo, Publisher, Designer 1.10.5, and 2.3.
MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB  SSD storage
,  Ventura 13.6.   Publisher, Photo, Designer 1.10.5, and 2.1.1.  
 iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil.  
Wired and bluetooth mice and keyboards.9_9

Link to comment
Share on other sites

Thank you for such effusive praise, @jmwellborn. You are too kind! I have always found this forum to be responsive, helpful, and (above all) decent and kind. I try to respond in the same manner. I'm glad that you like the "Red Overlays" macros. They were kind of a bugger to figure out, and they certainly don't work in every situation. But, for the most obvious case, they seem to be helpful.

There are a couple of other things I'm still trying to figure out (some of those things that people constantly say, "I could never switch to Affinity Photo until it has....") but they have remained elusive. If and when I come up with any other "miracle cures," I promise they'll be posted!

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

  • 6 months later...

smadell your macros are fantastic. This ability to work with masks is what I have wanted for some time and I would love to see it as a feature of the app. It is very difficult to adjust masks without clear vision.

I found that it is also possible to change the colour from red if that does not suit the particular work in hand. Thank you again for your excellent work and generosity to make it available.

Stephen

Link to comment
Share on other sites

@Digitalwoolly - I’m so happy that you found these Red Mask Overlay macros, and that they are working well for you. They say that “where there’s a will, there’s a way.” That’s not always true, but in this case blunt force seems to have given at least a partial solution.

As for generousity, I believe that I reap even more than I sow. The generousity of the members of our forum always astounds me.

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.