Jump to content

Mud’s Macros - Expand Stroke


Paul Mudditt

Recommended Posts

On one of the Facebook groups, David Williams set me an accidental challenge by mentioning Expand Stroke was a function only available in Affinity Designer.
Well now you can use Expand Stroke in Affinity Photo on all platforms by importing my Mud’s Macros library.
To create this I needed to record a macro, which is only available in AP. The command I needed was in AD so how to get it?
I started in Affinity Publisher on desktop with a blank document, changed to AP persona and started record, then changed to AD persona and performed Expand Stroke from the menu, then switched back to Photo persona and ended the recording. Simples, eventually !

Mud’s Macros V3

SelectionFromLayer - convert a layer into a pixel selection
SelectAllLayers - select all layers quickly
DeSelectAllLayers - de select all layers quickly
PencilPortrait - Convert Photo to pencil sketch (Credit: Alpha Sierra, YouTube)
InpaintCrop2 - fix edges after a straighten crop (Credit: Jim Welsh)
Inpaint - the inpaint option from the desktop.
ExpandStroke - Expand Stroke from Designer 
TextOnCurve - Text on a curve path from Designer
And here it is in action on iPad, but the macro also works on desktop versions of Photo as well.

 

Mud's Macros V3.afmacros

 

Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.0 Beta Sequoia on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.5 on  Windows 10 Pro.  (revived !)
Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18(22A5326f) 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

https://www.facebook.com/groups/affinityphotoastrophotography

The hardest link to find https://affinity.help

Mud’s Macros Library:-

https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/

 

Link to comment
Share on other sites

Clever use of the Personas.

-- 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.1.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

3 hours ago, walt.farrell said:

Clever use of the Personas.

Thanks Walt, I had a fair idea it would likely work because of the common core engine, it also offers a method to enhance all three packages with macro actions too.

 

Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.0 Beta Sequoia on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.5 on  Windows 10 Pro.  (revived !)
Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18(22A5326f) 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

https://www.facebook.com/groups/affinityphotoastrophotography

The hardest link to find https://affinity.help

Mud’s Macros Library:-

https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/

 

Link to comment
Share on other sites

  • 2 months later...
On 7/16/2019 at 12:11 AM, Paul Mudditt said:

On one of the Facebook groups, David Williams set me an accidental challenge by mentioning Expand Stroke was a function only available in Affinity Designer.
Well now you can use Expand Stroke in Affinity Photo on all platforms by importing my Mud’s Macros V2 library.
To create this I needed to record a macro, which is only available in AP. The command I needed was in AD so how to get it?
I started in Affinity Publisher on desktop with a blank document, changed to AP persona and started record, then changed to AD persona and performed Expand Stroke from the menu, then switched back to Photo persona and ended the recording. Simples, eventually !

Mud’s Macros V2

SelectionFromLayer - convert a layer into a pixel selection
SelectAllLayers - select all layers quickly
DeSelectAllLayers - de select all layers quickly
PencilPortrait - Convert Photo to pencil sketch (Credit: Alpha Sierra, YouTube)
InpaintCrop2 - fix edges after a straighten crop (Credit: Jim Welsh)
Inpaint - the inpaint option from the desktop.
ExpandStroke - Expand Stroke from Designer 

And here it is in action on iPad, but the macro also works on desktop versions of Photo as well.

Mud's Macros V2.afmacros

Paul, this is a brilliant idea. It could also be applied to ‘text on a curve’ something sadly lacking in Photo it seems.

Thanks for the heads up. Now to attempt the macro. Which I’ve never done!
 

-Robert

 

iPad Mini 6.  256GB. My GoTo design platform.

M2 Mac Mini. 24GB. LG 4K Monitor. + Samsung Monitor 2.

Windows 10 Toshiba. Windows 11 Parallels on Mac.

Publisher. Designer. Photo for Mac, PC & iOS. FCP, DaVinci, CapCut, Luma Fusion. etc.

@Affinity-Inspiration on YouTube.

 

Link to comment
Share on other sites

On 10/4/2019 at 8:22 AM, HarryMcGovern said:

Paul, this is a brilliant idea. It could also be applied to ‘text on a curve’ something sadly lacking in Photo it seems.

Thanks for the heads up. Now to attempt the macro. Which I’ve never done!
 

-Robert

TextOnCurve added to V3.

Mud’s Macros V3

SelectionFromLayer - convert a layer into a pixel selection
SelectAllLayers - select all layers quickly
DeSelectAllLayers - de select all layers quickly
PencilPortrait - Convert Photo to pencil sketch (Credit: Alpha Sierra, YouTube)
InpaintCrop2 - fix edges after a straighten crop (Credit: Jim Welsh)
Inpaint - the inpaint option from the desktop.
Sketch Effect by R C-R - Converts to a sketch effect
Dave’s 6-Layer High Pass Sharpening - Uses 6 layers of sharpening
ExpandStroke - Expand Stroke from Designer 
TextOnCurve - Text on Curve from Designer

Mud's Macros V3.afmacros

 

Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.0 Beta Sequoia on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.5 on  Windows 10 Pro.  (revived !)
Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18(22A5326f) 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

https://www.facebook.com/groups/affinityphotoastrophotography

The hardest link to find https://affinity.help

Mud’s Macros Library:-

https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/

 

Link to comment
Share on other sites

On 10/4/2019 at 7:46 PM, Paul Mudditt said:

TextOnCurve added to V3.

Any idea why (in Photo) the text is flipped and mirrored? Just asking, it's not really an issue, because when text is being replaced it looks fine.

006 2019-10-12, 10_40_08.jpg

Affinity Photo  2.3.1

Laptop MSI Prestige PS42
Windows 11 Home 23H2 (Build 22631.3007) - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz   2.00 GHz - RAM 16,0 GB

 

 
Link to comment
Share on other sites

30 minutes ago, HVDB Photography said:

Any idea why (in Photo) the text is flipped and mirrored? Just asking, it's not really an issue, because when text is being replaced it looks fine.

006 2019-10-12, 10_40_08.jpg

A curve has a start and a finish, so you must have drawn this right to left or possibly flipped it perhaps?

Images below from iPad but same can be achieved on desktop.

ACE8FC07-637B-4FE6-B37D-3CD84A9DBD6F.jpeg

 

Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.0 Beta Sequoia on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.5 on  Windows 10 Pro.  (revived !)
Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18(22A5326f) 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

https://www.facebook.com/groups/affinityphotoastrophotography

The hardest link to find https://affinity.help

Mud’s Macros Library:-

https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/

 

Link to comment
Share on other sites

4 hours ago, Paul Mudditt said:

A curve has a start and a finish, so you must have drawn this right to left or possibly flipped it perhaps?

Images below from iPad but same can be achieved on desktop.

ACE8FC07-637B-4FE6-B37D-3CD84A9DBD6F.jpeg

evroc a no txet  ... It sounds like R2D2 spoke that line...

 

iPad Mini 6.  256GB. My GoTo design platform.

M2 Mac Mini. 24GB. LG 4K Monitor. + Samsung Monitor 2.

Windows 10 Toshiba. Windows 11 Parallels on Mac.

Publisher. Designer. Photo for Mac, PC & iOS. FCP, DaVinci, CapCut, Luma Fusion. etc.

@Affinity-Inspiration on YouTube.

 

Link to comment
Share on other sites

8 hours ago, Paul Mudditt said:

A curve has a start and a finish

I know

3 hours ago, HarryMcGovern said:

so you must have drawn this right to left or possibly flipped it perhaps?

Didn't touch anything. It appears that way straight after the macro was executed ...

Affinity Photo  2.3.1

Laptop MSI Prestige PS42
Windows 11 Home 23H2 (Build 22631.3007) - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz   2.00 GHz - RAM 16,0 GB

 

 
Link to comment
Share on other sites

@HVDB PhotographyMust admit I hadn’t noticed that, whilst testing I concentrated on drawing Circles to add text.

It’s the same on iPad too.

Had a quick play with re-recording the macro but could not alter this behaviour. Please just adjust by moving the red and green sliders around.

 

Affinity Photo, Designer, Publisher 1.10 and 2.5 on macOS 15.0 Beta Sequoia on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.5 on  Windows 10 Pro.  (revived !)
Affinity Photo, Designer, Publisher 2.5 on M1 iPad Pro 11” on iPadOS beta 18(22A5326f) 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

https://www.facebook.com/groups/affinityphotoastrophotography

The hardest link to find https://affinity.help

Mud’s Macros Library:-

https://forum.affinity.serif.com/index.php?/topic/156842-muds-macros-v11-library-content-aware-move-added/

 

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.