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

Recommended Posts

Some time ago I started using the macro function in Affinity Photo.

To brighten a picture I wrote the following macro after opening a picture.

In Tab Layer.

1. New layer from snapshot/ background.

In layers at the right side.

2. In layer set opacity to 50%.

3. In layer set mode to Add.

In Tab Layer.

4. Merge down.

After use the macro is stored in the macro menu with the name “ lichter “.

Using the macro with another picture results in a picture with a shade of the picture from the first use through the new one.

What is wrong in this macro?

Link to comment
Share on other sites

19 minutes ago, HP27f said:

What is wrong in this macro?

Placing the "question" would be more appropriate in the "Questions" section than in the bug report section - there is a better chance that someone will answer and advise you.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.3.1.2217
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

  • Staff

Hi @HP27f,

Welcome to the Affinity Forums :)

Can you please open Affinity Photo and navigate to the Library Studio (where the macro is stored), then right-click on the macro and select Edit.

In the Macro Studio, you should now see the steps for this macro you have created - please select Export from the top toolbar options in this studio, to save this as a .afmacro file, and attach a copy of this here for me.

Many thanks in advance!

20 minutes ago, Pšenda said:

Placing the "question" would be more appropriate in the "Questions" section than in the bug report section

Thanks, I've moved the thread to the Questions section, until a bug is confirmed here :)

Link to comment
Share on other sites

If you copy a layer or selection in a macro, then Photo will store the copied image in the macro itself. I suspect that the same is happening here. The new layer in step 1 is embedded in the macro, not the instruction to create a new layer.

On 7/19/2022 at 9:58 AM, HP27f said:

What is wrong in this macro?

Really nothing is wrong with the macro itself, it is the way that macros are implemented in Photo.

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to comment
Share on other sites

5 hours ago, HP27f said:

What is wrong in this macro?

Step one, the snapshot is stored in the Macro. If it is a photo of a kitten then it will always be a photo of a kitten. Try Select the bottom layer, duplicate it do stuff ....

Mac Pro (Late 2013) Mac OS 12.7.2 
Affinity Designer 2.3.1 | Affinity Photo 2.3.1 | Affinity Publisher 2.3.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

One additional comment…

Once you select the bottom layer, duplicate it, and set the opacity and blend mode - stop there! The “merge down” step makes this a destructive edit, and precludes the opportunity to go back and change the various settings after the fact. Other than some economy of file size, it does not seem that you gain anything from merging the duplicated layer; you do, however, lose significant editing potential further along in your edit.

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

good morning, @HP27f. As noted previously, your macro (when originally recorded) took up the photo you used during the recording. This was the result of a "copy" operation in one manner or another. You need a macro that does not do that!

I have attached a version of your macro, except that it will work on any photo without referencing an older one. I've also attached a brief video that I took while creating the macro, so you can see the steps as they occur. In brief:

1) Deselect (get rid of any selection that might exist on the document). - I do this most of the time, because in most cases an existing selection can screw up whatever the steps to the macro might be.

2) Deselect Layers - I also include this step in most of my macros, so that I can begin fresh.

3) Select the Background Layer - during macro recording, this brings up a dialog box asking how to specify which layer you mean to select. Be sure to choose "Select layer 1 from the bottom." This guarantees that you select the bottom-most layer in the stack.

4) Duplicate - this adds a copy of the background layer, just above it.

5) Set Opacity to 50%

6) Set Blend Mode to "Add"

7) I did not add a Merge Down command since, as I said in a previous post, this is an unnecessary step that makes this a destructive process.

I also created an alternate version of your macro, in which I get a similar result using a "Brightness and Contrast" adjustment instead of duplicating the background layer. I believe this is a "cleaner" and simpler method, and it allows me to put a dialog box into the macro in which you can choose the Brightness level (if you should want something a little lighter or darker).

Lighten Background.afmacro Lighten Background (alternate).afmacro

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.