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

Recommended Posts

Hello, 

Im looking to create a macro that applies an overlay. The overlay is orientation specific and all images would need to be in the horizontal position before applying the overlay. Is it possible to include an action in the macro that will rotate any vertical images to horizonatal then back to vertical at the end of the macro?

Thanks for any assistance.

 

Troy

 

 

Link to comment
Share on other sites

An interesting challenge. I just tried the following, recording as a macro:

  1. Start Recording
  2. Rotate the canvas 90deg clockwise
  3. Add a white rectangle to fill about 75% of the canvas.
  4. Flatten Document.
  5. Rotate the canvas 90deg anticlockwise.
  6. End Recording

This works as expected.

However, if I now start from the original image and run the macro, the white rectangle is in a different position than expected. It seems to be in the position before the second rotation. Despite flattening the document.

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Link to comment
Share on other sites

2 hours ago, John Rostron said:

An interesting challenge.

Would not the biggest challenge be rotating the images that need it without also rotating the ones that don't?

All 3 1.10.8, & all 3 V2.5.5 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

Link to comment
Share on other sites

I do this in Photoshop now by using a javascript that rotates upright images then at the end of the action the script rotates them back. Wanting to move away from Photoshop, not having written the script myself and not really inderstanding how it works, Im hoping for a more stable process in Affinity.

I have included the scripts I use incase they can be of any help.

Thanks for the assistance.

Troy

RotateUpright.js

UndoRotate.js

Link to comment
Share on other sites

3 hours ago, R C-R said:

Would not the biggest challenge be rotating the images that need it without also rotating the ones that don't?

It would indeed. As far as I know, Affinity Photo does not offer any choice mechanisms in its macros. Roll on the Macro persona, or Scripting persona! Maybe version 1.8, or 1.9 or 2.0 ...

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

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.