Jump to content

Recommended Posts

Posted
4 minutes ago, walt.farrell said:

I may have lost something in the discussiion, but you can specify the color for a Fill layer. You just need to choose it first, using (for example) the Color panel.

Thus, you can record:

  1. Choosing the color.
  2. Adding the Fill layer.

At that point you have the Fill layer, with the color you chose, and that can be easily changed after the macro stops running. 

That works fine, but of course you would have to record a separate macro for each different color you want, so it is not as useful as it could be if the macro itself allowed you to choose the color.

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
1 minute ago, R C-R said:

That works fine, but of course you would have to record a separate macro for each different color you want, so it is not as useful as it could be if the macro itself allowed you to choose the color.

That's exactly what I tried to say. 😉

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

Posted
3 minutes ago, Mr. Doodlezz said:

The colour you set while you record the macro, as suggested by you and I think someone else earlier, is fixed and can't be changed when running the macro.

 

2 minutes ago, R C-R said:

That works fine, but of course you would have to record a separate macro for each different color you want, so it is not as useful as it could be if the macro itself allowed you to choose the color.

Both are, of course, true. But that did not seem to be involved in what I was replying to (thus, my comment that I may have missed something). I responded to a statement that it was not possible for a macro to set a specific color for a Fill Layer. It is possible.

However, it does not seem to be possible to allow the user, at a later time, to pick the color the macro is going to use for a Fill Layer.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
3 minutes ago, Mr. Doodlezz said:

Also, a macro doesn't have to end nondestructively, so the result might be a rasterised layer, or in my case even a layer mask instead of a pixel layer.

Not sure what you mean by this in regard to adding a Fill layer via a macro. It won't be rasterized by the macro but you could add that step to the macro if you wanted to convert it to a pixel layer.

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
2 minutes ago, walt.farrell said:

However, it does not seem to be possible to allow the user, at a later time, to pick the color the macro is going to use for a Fill Layer.

I can't find any way for a macro to set the fill (or stroke) color of any kind of layer. Does anyone else know of a way to do that?

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
1 minute ago, R C-R said:

I can't find any way for a macro to set the fill (or stroke) color of any kind of layer. Does anyone else know of a way to do that?

Presumably you're referring to a layer that the macro did not create, and a color chosen by the user while running the macro?

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted (edited)
18 minutes ago, walt.farrell said:

However, it does not seem to be possible to allow the user, at a later time, to pick the color the macro is going to use for a Fill Layer.

That's correct. The fill layer will have the colour that was originally recorded, a subsequent Edit/Fill... command in the macro will show a colour dialog but the chosen colour sets the opacity of the fill depending on the greyness of the colour chosen using the colour patch. Hence my klungy workaround using a white pixel layer with Colour Overlay fx which I described above and provide the FoxFill macro to illustrate the point

Edit: Well the charcoal is looking good so that'me finished for no

Edited by David in Яuislip

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Posted
4 minutes ago, walt.farrell said:

Presumably you're referring to a layer that the macro did not create, and a color chosen by the user while running the macro?

It doesn't matter if it is a layer created by the macro or not. I cannot find a way to (for example) run a macro to set the fill or stroke color of an existing rectangle or any other quick shape, or of any other kind of vector object. For Pixel layers, the Edit > Fill options do sort of work but even if the macro includes a rasterize & trim step, those Edit > Fill options expand the pixel layer so it swells to the entire document size, as if it was a Fill layer.

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
20 minutes ago, R C-R said:

It doesn't matter if it is a layer created by the macro or not. I cannot find a way to (for example) run a macro to set the fill or stroke color of an existing rectangle or any other quick shape, or of any other kind of vector object.

It does matter. If the macro is creating a vector object, it can set the color(s) of that object before creating it. For example, this 2.1 .afmacro will create a pink triangle with a green stroke, and a yellow rectangle with a blue stroke: yellow-pink.afmacro

But it cannot set the fill of an existing vector object.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
1 minute ago, walt.farrell said:

But it cannot set the fill of an existing vector object.

That is what I am talking about!

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted

Which is quite an indictment.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted
57 minutes ago, R C-R said:

That is what I am talking about!

And that's why I asked, and why precision matters.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
11 minutes ago, walt.farrell said:

And that's why I asked, and why precision matters.

It is why in my earlier post I used the word "existing" but I suppose the way I wrote it could be misinterpreted as applying only to rectangles or other quick shapes.

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
2 hours ago, R C-R said:

Not sure what you mean by this in regard to adding a Fill layer via a macro. It won't be rasterized by the macro but you could add that step to the macro if you wanted to convert it to a pixel layer.

You just answered your own question. That is exactly what I mean. A Fill Layer does not necessarily remain a Fill Layer, which, as Walt wrote, can be changed afterwards. As written, in my case the macro actually includes the operation of rasterising to a layer mask – thus the colour of the Fill Layer cannot be adjusted afterwards (after the macro), because it no longer exists at that point.

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

Posted

I'll just keep adding observations and questionable events to this topic as they happen. Feel free to unfollow. 😅

  • Level Adjustment layers are recorded as »Add levels raster layer« instead of a live adjustment layer, presumably forcing the previously selected object (layer/grou/shape that was active before the macro got activated) to be rasterised, even though it has absolutely no active part in the macro and everything is deselected as the first action of the macro.

Yeah, no … I thought I had finally figured out why my layers were getting rasterised. But no. 🙄

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

Posted

It's just a means to differentiate between Adjustment layers and Live filter layers, it doesn't rasterise as you've discovered
I'm not sure that it's worth it and the wording is a bit odd but not as odd as the entry after Placing an image, "Set text stylesheet" which also shows in the History panel
At least, "Redo from start" sort of made a bit of sense, "Set text stylesheet" is just twaddle

MacroLayers.png

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Posted (edited)

Photo 2.1:

  • It's not possible to record the renaming of a Compound Mask, whether by double-clicking on them in the Layers panel or from the menu.
  • It's not possible to record changing of a Compound Mask mode of a mask inside the Compound Mask.
Edited by Mr. Doodlezz
Rephrased for clarity. Added Compound Mask mode issue.

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

Posted
8 minutes ago, Mr. Doodlezz said:

Photo 2.1:

  • It's not possible to rename composite masks, whether by double-clicking on them in the Layers panel or from the menu.

Since this has nothing to do with macros, it probably should be posted a separate topic, probably in the Bugs forum....

All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
19 minutes ago, R C-R said:

Since this has nothing to do with macros, it probably should be posted a separate topic, probably in the Bugs forum....

I rephrased my point. It is possible to rename Compound Masks in general, but when you try to record it and try to rename it, you get an error.

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

Posted

Photo 2.1

  • Deselecting Layers will not Deselect Layers inherited from Designer or Publisher documents. (For example, opened via File → Edit in Photo or the Open dialogue box).
    While this is not a macro-only problem, it does become particularly problematic when recording macros that are intended to build on top of existing layers, usually achieved by Deselect Layers. If it were to work as intended (as it does with virtually every other layer or element type in the Layers panel), new layers created by the macro would be added above all layers instead of inside the Designer/Publisher inherited ones.

2023_b.png.6eb47882072cc58253b7219526339b14.png

 

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.