Jonzinator Posted March 25, 2019 Share Posted March 25, 2019 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 Quote Link to comment Share on other sites More sharing options...
Staff Callum Posted March 25, 2019 Staff Share Posted March 25, 2019 Hi Jonzinator, Welcome to the forums If possible could you give an example of the overlay you would like to use? Thanks Callum Quote Please tag me using @ in your reply so I can be sure to respond ASAP. Link to comment Share on other sites More sharing options...
John Rostron Posted March 25, 2019 Share Posted March 25, 2019 An interesting challenge. I just tried the following, recording as a macro: Start Recording Rotate the canvas 90deg clockwise Add a white rectangle to fill about 75% of the canvas. Flatten Document. Rotate the canvas 90deg anticlockwise. 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 Quote 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 More sharing options...
R C-R Posted March 25, 2019 Share Posted March 25, 2019 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? John Rostron 1 Quote 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 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
nila8000 Posted March 25, 2019 Share Posted March 25, 2019 Would not the greatest test pivot the pictures that need it without additionally turning the ones that don't? Quote Link to comment Share on other sites More sharing options...
Jonzinator Posted March 25, 2019 Author Share Posted March 25, 2019 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 Quote Link to comment Share on other sites More sharing options...
John Rostron Posted March 25, 2019 Share Posted March 25, 2019 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 Quote 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 More sharing options...
Jonzinator Posted March 25, 2019 Author Share Posted March 25, 2019 Thanks for all the feedback. I have included 1 of the overlays that I use. The biggest challange is rotating only the horizontal images to a vertical position then applying the overlay then rotating those images back to their native orentation. Thanks again for the assistance. Troy SLOPPY WALLETS.psd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.