ugly mask Posted April 2, 2021 Share Posted April 2, 2021 (edited) I tried to make a macro to put 10 photos (3x4cm) to a 4R template in the position shown below. the problem is that I've recorded the macros, and put the photos at the proper coordinates. but when the macro is executed, the result is messed up. not like the photo above it turns out that what is recorded in the macro is not the final position (coordinates) of the photo, but an offset from its original position. even though the initial position when dragging a photo from explorer to affinity is always different. Likewise with resizing photos, what is recorded is the percentage change in size, not the final size result. but in my case the most important thing is the position / coordinates of the photo. I tried to record macros using the snap assist with the guide lines, the result was still messy, even though on PS it worked fine Any suggestion? Edited April 2, 2021 by ugly mask Quote Link to comment Share on other sites More sharing options...
carl123 Posted April 2, 2021 Share Posted April 2, 2021 Can you supply a sample finalised 4R document with the 10 (3x4cm) images in it, all placed at the exact position you want them in the document? Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
ugly mask Posted April 2, 2021 Author Share Posted April 2, 2021 (edited) I clarify my steps This is the result when I dragged those 10 photos from explorer to affinity. the coordinates / positions are always random, and I can't make the photos always have the same coordinates when dragging from explorer. As I remember using PS, its position was always in the middle when I dragged files from explorer. then I recorded the macros to the position as shown below. this is the final position I want these are the coordinates of the position I want, with the reference point in the upper left corner of the photo when I redo to the position like the first image, and run the macro. the results are as I expected but when I drag a new photos again, it will get a different position like the image 1 (drag.png). I find it difficult to place the photos in the same position as image 1. the results are as below and the result when I run the macro is like this Edited April 2, 2021 by ugly mask Quote Link to comment Share on other sites More sharing options...
carl123 Posted April 2, 2021 Share Posted April 2, 2021 Try the attached macro on the supplied test document The test document supplied has the images randomly added (as regards their position) Images (3x4cm) can be anywhere on the page, or even the canvas The layer stacking order determines into which position each picture goes The macro installs via the layer panel Template 3x4 10x.afmacros 4R-test-document.afphoto Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
ugly mask Posted April 2, 2021 Author Share Posted April 2, 2021 (edited) Thank you for your help, it works well on the test document you provide. although there is one layer that was missed (layer 2). can you tell me what you did to the macro so i can build it myself? There will be some photo combination templates that I have to make. there is no way I always ask for help in forums for almost the same thing Edited April 2, 2021 by ugly mask Quote Link to comment Share on other sites More sharing options...
carl123 Posted April 2, 2021 Share Posted April 2, 2021 10 hours ago, ugly mask said: it turns out that what is recorded in the macro is not the final position (coordinates) of the photo, but an offset from its original position. even though the initial position when dragging a photo from explorer to affinity is always different. In order to ensure the offset is always what is required First move image 1 to 0,0 (i.e. top left of document) UsingArrange > Align left Arrange > Align Top Then position the image Do the same for image 2 which will have a different position Likewise, for the remaining 8 images Since the first thing we do is move an image to a known reference position (0,0) it does not matter where they are initially placed in the document. All positioning information will always be from the known reference position of (0,0) ugly mask 1 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
ugly mask Posted April 2, 2021 Author Share Posted April 2, 2021 (edited) ah... I see I don't think about using align before. previously I tried to get to coordinates 0,0 using transform. thank you, this helps me a lot Edited April 2, 2021 by ugly mask Quote Link to comment Share on other sites More sharing options...
sbe Posted April 2, 2021 Share Posted April 2, 2021 14 hours ago, ugly mask said: Where can I find that more detailed Transform-Panel? Quote Link to comment Share on other sites More sharing options...
R C-R Posted April 2, 2021 Share Posted April 2, 2021 10 minutes ago, sbe said: Where can I find that more detailed Transform-Panel? In the Macro panel, click on the gear icon next to the step. sbe 1 Quote All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & 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...
ugly mask Posted April 3, 2021 Author Share Posted April 3, 2021 4 hours ago, sbe said: Where can I find that more detailed Transform-Panel? Yes... as R.C.R said, you can click the gear icon next to transform in mcaro panel 10 hours ago, ugly mask said: sbe 1 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.