Jump to content
s_cream

layer selection in macro problem

Recommended Posts

Hi, I want to ask about the problem when choosing a layer to apply the effect (outer shadow) when setting up a macro. After starting the macro recording in the dialog, I select the layer name (Background), record the actions, save, etc., then apply the macro in the Batch job. However, the effect is inserted either into the Levels layer above Bckg or (if this layer is not there) into the Pixel layer with a white background below Bckg. Never to the layer I chose. It seems supernatural to me.馃ザ Even weirder is that I tried it in a few photos at the beginning and it worked well. I also tried to select the layer "second from the bottom" (which in this case is always bckg) with exactly the same result. I have finished 2k photos, this is the last step, there is a risk that I will open it all by hand one by one. Help please if anyone can.

Share this post


Link to post
Share on other sites

Rename your layers, each聽with a unique label. That can get recorded as well and lets you chose selection by name when recording your macros.


Affinity Photo / Designer / Publisher 鈥⒙燱indows 10
MSI聽GT75VR 7RF Titan Pro
3x Full HD displays, colour calibrated (DataColor Spyder) 路 Intel聽Core聽i7-7820HQ 路聽GeForce聽GTX 1080聽(8 GByte GDDR5X) 路聽32 GByte DDR4 鈥⒙燫AID 4: 512 GB聽NVMe-SSDs 路 multiple additional internal and external HDD 路 Graphics Pen Tablet Huion NEW 1060PLUS8192

Share this post


Link to post
Share on other sites

Hi Andy, thanks for the response, but I don't understand much. Within each set of layers for a each photo, the name "Background" is unique, isn't it?In addition, it does not work as specified, even if I set the "second layer from below".聽 This should not depend on the layer name.

Share this post


Link to post
Share on other sites

Can you supply one of the files and the macro that you use in the batch file - (where the desired outcome is incorrect.)


Due to the fact that Boris Johnson is now our Prime Minister, punctuation, spelling and grammar will never be worried about ever again. 聽We now have far bigger problems to be worried about.

Share this post


Link to post
Share on other sites
29 minutes ago, s_cream said:

Hi Andy, thanks for the response, but I don't understand much. Within each set of layers for a each photo, the name "Background" is unique, isn't it?In addition, it does not work as specified, even if I set the "second layer from below".聽 This should not depend on the layer name.

It should work like that, yes. But I'd still try renaming the layer. As that will make it easier for the macro engine to assign any action to it. Kinda bulletproof option.


Affinity Photo / Designer / Publisher 鈥⒙燱indows 10
MSI聽GT75VR 7RF Titan Pro
3x Full HD displays, colour calibrated (DataColor Spyder) 路 Intel聽Core聽i7-7820HQ 路聽GeForce聽GTX 1080聽(8 GByte GDDR5X) 路聽32 GByte DDR4 鈥⒙燫AID 4: 512 GB聽NVMe-SSDs 路 multiple additional internal and external HDD 路 Graphics Pen Tablet Huion NEW 1060PLUS8192

Share this post


Link to post
Share on other sites
1 hour ago, Andy05 said:

It should work like that, yes. But I'd still try renaming the layer. As that will make it easier for the macro engine to assign any action to it. Kinda bulletproof option.

I would have to manually rename the layer in two thousand photos. If it does not bulk.

Share this post


Link to post
Share on other sites
10 minutes ago, s_cream said:

I would have to manually rename the layer in two thousand photos. If it does not bulk.

No, rename the "background" layer to "Layer XX" or whatever during recording the macro only once. This renaming will apply to all images which you'll run the macro for.


Affinity Photo / Designer / Publisher 鈥⒙燱indows 10
MSI聽GT75VR 7RF Titan Pro
3x Full HD displays, colour calibrated (DataColor Spyder) 路 Intel聽Core聽i7-7820HQ 路聽GeForce聽GTX 1080聽(8 GByte GDDR5X) 路聽32 GByte DDR4 鈥⒙燫AID 4: 512 GB聽NVMe-SSDs 路 multiple additional internal and external HDD 路 Graphics Pen Tablet Huion NEW 1060PLUS8192

Share this post


Link to post
Share on other sites
2 hours ago, carl123 said:

Can you supply one of the files and the macro that you use in the batch file - (where the desired outcome is incorrect.)

I inserted four photos from the same batch with different variants of the layer arrangement. Everything was processed by the same macro, yet the result is different. I also insert a macro. Thanks a lot.
(these are not my pictures,馃 the customer took them)

DSC03658.afphoto DSC03665.afphoto DSC03928.afphoto DSC03965.afphoto m2OuterShadow.afmacro

Share this post


Link to post
Share on other sites

There is nothing in the macro that tells it to select the聽Background layer聽which should be the first thing it does

If when you last saved a APhoto file the last thing selected was the white pixel layer or the Adjustment layer then this is the layer the shadow will be applied to

I believe this is what you are seeing

You need to redo the macro but make sure the "first" command is to select the background layer

But since the background layer may already be selected when you record the new macro you should first do a聽Select > Deselect Layers then select the background layer

(as the macro won't record you selecting a layer that is already selected)


Due to the fact that Boris Johnson is now our Prime Minister, punctuation, spelling and grammar will never be worried about ever again. 聽We now have far bigger problems to be worried about.

Share this post


Link to post
Share on other sites
4 hours ago, carl123 said:

There is nothing in the macro that tells it to select the聽Background layer聽which should be the first thing it does

If when you last saved a APhoto file the last thing selected was the white pixel layer or the Adjustment layer then this is the layer the shadow will be applied to

I believe this is what you are seeing

You need to redo the macro but make sure the "first" command is to select the background layer

But since the background layer may already be selected when you record the new macro you should first do a聽Select > Deselect Layers then select the background layer

(as the macro won't record you selecting a layer that is already selected)

This is it!馃お 馃榾 The basic premise is that a deselect of all layers is performed before selecting a layer. Otherwise, the setup later somehow affected. I don't think that dialog should work like this. Thanks a lot!

Share this post


Link to post
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

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.