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

howto place an item at a precise distance from another


Recommended Posts

Hi All

in AD

how would you place an item at say 20 mm from a point on another item?

also how to duplicate an object at y-20mm?

coming from Autosketch where this was easy

Tank you in advance

Clavote


 

 

Windows 10 pro 64; HP elitebook 1050 G1; A-Designer latest; A-Publisher latest; A-Photo Latest

Link to comment
Share on other sites

Assuming you don't want to use guides or a grid, you can use the Transform panel.

transform.jpg.c29bca2dc7f6b58f5ed84288f610a3eb.jpg

It will probably be in pixels but enter mm and it will work it out for you, or change the document units.

Click on one of the the alignment thingy squares (nine blue squares) to decide where the measurements are read from.

 

Edit. See the posts below by @Pšenda where you can enter an expression such as "-=(h+20mm)" in the X or Y box to set a gap. 

 

If you want units in mm, click on the View Tool (hand) and change the units on the Context Toolbar.

mm.jpg.2a53d4ac3689edc95984639d2fef3699.jpg

 

BTW. If you hold down the Ctrl key and move the mouse, it shows various dimensions, depending on where the mouse pointer is. Very useful for precision positioning.

20mm.jpg.ca1348bb6889318038a1a09c9a114a05.jpg

page.jpg.05b0c4073920dfb8b28a9375b83211dc.jpg

 

If you move an item by 20 mm. Press Ctrl + J and that will duplicate it and move by 20 mm. It's called Power Duplicate. Like Step and Repeat.

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

5 hours ago, Clavote said:

how to duplicate an object at y-20mm?

Duplicate object (Ctrl + C, Ctrl + V), and set to Y enter in Transform panel "-=20mm".

https://affinity.help/photo/English.lproj/pages/Workspace/expressions.html

 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

12 minutes ago, Pšenda said:

Duplicate object (Ctrl + C, Ctrl + V), and set to Y enter in Transform panel "-=20mm".

https://affinity.help/photo/English.lproj/pages/Workspace/expressions.html

 

Does that not just move the copied object 20mm ?

i.e. a copy of an object that was 30mm wide would overlap by 10mm.

So, if your original object was 30mm wide, you would have to do "-=50mm" to position them 20 mm apart.

Good solution otherwise :)

P.S. you could also do Ctrl + J to duplicate, rather than Ctrl + C then Ctl + V to halve the number of key presses. That would also then work with Power Duplicate, which the OP seems to want.

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

4 minutes ago, toltec said:

just move the copied object 20mm ?

Yes, as requested "y-20mm" :-) 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

3 minutes ago, toltec said:

 Ah, but which point ? 

Why should not he? Maybe if you need to draw lines at 20 mm.

If you want to make a "distance" between objects, you can use "-=(h+20mm).

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

11 hours ago, Pšenda said:

Why should not he? Maybe if you need to draw lines at 20 mm.

If you want to make a "distance" between objects, you can use "-=(h+20mm).

I often lay out things like this and need to control the gaps between the images.

contact.jpg.3be527a32f2e286e6438e48b426500b7.jpg

They are not usually that regular in size or shape so I can't always make templates.

So, I take a point on the right hand edge of the first image, and transform to a point on the left hand edge of the second image. If you get my point ;)

How does the "H" work for that ?

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

1 hour ago, toltec said:

How does the "H" work for that ?

H - height, W - width. Looks at help (Transform variables). 

https://affinity.help/photo/English.lproj/pages/Workspace/expressions.html

 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

You can move objects in steps of ten units by clicking in any of the boxes in the Transform Panel, then press & hold ⇧ (Shift) and using the scroll wheel on your mouse or using the Arrow keys if you don't have a scroll wheel. Also clicking in any of the transform boxes and just pressing the Arrow keys will change the numbers to integer numbers if you don't want fractional numbers.

Learned this when R C-R mentioned it in a post recently.

 

Typing +20 after the existing digits will also move an object 20 units

115531664_ScreenShot2018-06-04at07_11_41.png.f629de6058a0fd962f0813db96c8a84d.png

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

10 hours ago, Pšenda said:

H - height, W - width. Looks at help (Transform variables). 

https://affinity.help/photo/English.lproj/pages/Workspace/expressions.html

 

We don't want to adjust the size of the object (h or w) but the position of the object on the page (x or y), in particular the gap between two object.

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

1 hour ago, firstdefence said:

You can move objects in steps of ten units by clicking in any of the boxes in the Transform Panel, then press & hold ⇧ (Shift) and using the scroll wheel on your mouse or using the Arrow keys if you don't have a scroll wheel. Also clicking in any of the transform boxes and just pressing the Arrow keys will change the numbers to integer numbers if you don't want fractional numbers.

Learned this when R C-R mentioned it in a post recently.

 

Typing +20 after the existing digits will also move an object 20 units

115531664_ScreenShot2018-06-04at07_11_41.png.f629de6058a0fd962f0813db96c8a84d.png

Very good, but there still seems to be no direct way of setting a gap between two objects.

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

7 minutes ago, toltec said:

gap between two object.

Therefore, you need to know and specify the dimensions of the object (its H and W)!

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

1 minute ago, Pšenda said:

Therefore, you need to know and specify the dimensions of the object (its H and W)!

Exactly, that's the downside, a fair bit of working out involved.

It would be nice if there was an easier way of setting a gap. 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

1 hour ago, toltec said:

Exactly, that's the downside, a fair bit of working out involved.

As I wrote, just write "-=(h+20mm)".

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

15 minutes ago, Pšenda said:

As I wrote, just write "-=(h+20mm)".

Ah yes, very good :)

Didn't work the first time I tried it so I obviously did something wrong.

Thanks, that will actually make several of my tasks a lot easier :)

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

47 minutes ago, toltec said:

lot easier

Even the brackets do not have to be written there (I wrote them for clarity) or even "mm" (if you have them set as unit of the document). It's easier not to go anymore :-)

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Thank you all
lot to learn
but

still no way to directly create a new objet with an X or Y offset to a "reference"point.

or I still need another explanation maybe

The fastest way I found was to create the new object, snap it to the "reference" point then x+20

very helpful people here !!!!

Clavote

also I couldn't find a keyboard shortcut to directly enter a value in the 4 transform boxes (X,Y,W,H)

 

Windows 10 pro 64; HP elitebook 1050 G1; A-Designer latest; A-Publisher latest; A-Photo Latest

Link to comment
Share on other sites

2 hours ago, Clavote said:

still no way to directly create a new objet with an X or Y offset to a "reference"point.

What reference point do you mean ?

A reference point on the first object or on the page ?

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

Well, if you use the alignment square box (nine squares) that gives you the position, depending on which square you select.

tr1.jpg.2ca68fcdf71efc24a64723f4dde9afc4.jpg

tr2.jpg.4b91b41009e0dff1d1e188d679131367.jpg

tr3.jpg.0dcc62fe19b9a6ff97040d2c70b962da.jpg

So, for an X coordinate that gives you left edge, centre or right edge.

You could then enter an X coordinate based on either of those. Needs a bit of maths. So, press Ctrl + J to duplicate it, then say, enter 220 in the X box for a 20 mm gap.

x400.jpg.291980d07d1de7dd32a1ece934ddb302.jpg

or you could duplicate the first object Ctrl + J and enter an expression in the Y box of +=w+20 which calculates the width of the box (20 mm in this case) and adds 20mm to that. So a 40 mm movement in total, giving a 20 mm gap.

Probably not as precise, or as easy as you would like but I think that is the best on offer. You would probably be better off with setting a grid or using guides.

 

Another option would be to create a box and position that. In snapping options, object's bounding boxes can be set to snap to other bounding boxes. Below I used the box to snap the left edge of the second object to the centre point of the first object.

boxguide.jpg.a0fe972054480c389ed8bbd8f8216d6a.jpg

I often use objects in this way, hiding (or deleting) the "guide" boxes when I'm done.

I am sure more tools will be added to Designer as time permits.

 

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

Maybe a "Space" option in the transform Panel for selected items based on the choice on the alignment box. 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Cool tip to space objects.

687231192_spaceobjects.thumb.gif.0f1058ee38bd2275238e463c1856e189.gif

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

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.