Jump to content

Converting documents from pixels to mm and scaling objecting using a relative scale


Recommended Posts

I have been using pixels in the document settings so far but have recently got a laser printer and want to take some svg files created with |Affinity to the laser burning software (LightBurn). In this case I would like to have my measurements in mm. The trouble is I was using a base shape with 100 by 100 pixels and deriving various tiling shapes based on that square. But when I convert the doc to use mm as unit, that 100 px translates to 8.5 m. Ideally I would like to have a round number like 10mm. Is there any way I can scale all of my tiles so that they will all scale to a 10x10 mm box?

Thanks!

image.png.979e76ac02874dfe61c0db74d65e6033.png

Link to comment
Share on other sites

15 minutes ago, randomvectorstudio said:

when I convert the doc to use mm as unit, that 100 px translates to 8.5 m.

What document resolution (DPI) do you use? [If it would be only 1 dpi then 100 px result in 2.45 m. I don't see a way to achieve your 8.5 m.]

If you mean 8.5 mm instead then scaling by 10 / 8.5 ≈ 1.17647 would result in the wanted 10 mm. However, note that, regardless of the current document DPI, a px to mm conversion is hardly as smooth as, for example, mm and m, and therefore you may need a scaling value with multiple decimal places and/or rounding and not achieve perfect 10.000 mm. – Alternatively you could set an absolute value (10 mm) instead of scaling with a multiplication (8.5 x ...).

But honestly I might misunderstand your goal, especially the drawing and its red arrows appears unclear to me.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

5 minutes ago, thomaso said:

What document resolution (DPI) do you use? [If it would be only 1 dpi then 100 px result in 2.45 m. I don't see a way to achieve your 8.5 m.]

If you mean 8.5 mm instead then scaling by 10 / 8.5 ≈ 1.17647 would result in the wanted 10 mm. However, note that, regardless of the current document DPI, a px to mm conversion is hardly as smooth as, for example, mm and m, and therefore you may need a scaling value with multiple decimal places and/or rounding and not achieve perfect 10.000 mm. – Alternatively you could set an absolute value (10 mm) instead of scaling with a multiplication (8.5 x ...).

But honestly I might misunderstand your goal, especially the drawing and its red arrows appears unclear to me.

I meant mm 🙂 Sorry should have explained the red lines a bit better. In my original document those red lines would have been 100 px. So basically when I convert the document to use mm (300 dpi) that measurement becomes around 8.5 mm. So if i have to ask the question in a different way, is it possible to scale all those 8 pointed star shapes and tile shapes derived from those to keep those red lines in the new document to be about 100 mm? Thanks again for ur reply!

Link to comment
Share on other sites

3 minutes ago, randomvectorstudio said:

is it possible to scale all those 8 pointed star shapes and tile shapes derived from those to keep those red lines in the new document to be about 100 mm?

I am still unsure what you want to achieve with the red lines + arrows. If the red lines are a custom Grid then 'simply' change its definition in the Grid Manger as wanted. If they are Guides I doubt their is a simple way and you might need to delete + recreate them.

Regarding the objects: if you want each of them to be 100 mm you could use the new V2 feature to set a certain absolute size (10 mm) for several selected objects via the "Make Same" option in the Alignment dialog. I guess you start the process with a key object that got set to 10 mm already.

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

It sounds like you want to resize multiple object relative to the base object; the base object's dimensions are currently 8.5 x 8.5 mm and after resizing you want the base object to be 10 x 10 mm. If my understanding is correct, you could put each set of objects into a Group or Layer, toggle visibility off for all layers accept for the base object, and resize the Group/Layer.

The video below demonstrates it.

 

Windows 10 22H2, 32GB RAM | Affinity Designer/Photo/Publisher 2 (MSI/EXE)

Link to comment
Share on other sites

Couldn't use the Transform Objects Separately option on the context menu.

image.thumb.png.4dc411d335f989991be6cc4c2f3906a7.png

iMac 27" 2019 Sequoia 15.0 (24A335), 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

20 hours ago, Brian_J said:

It sound like you want to resize multiple object relative to the base object; the base object's dimensions are currently 8.5 x 8.5 mm and after resizing you want the base object to be 10 x 10 mm. If my understanding is correct, you could put each set of objects into a Group or Layer, toggle visibility off for all layers accept for the base object, and resize the Group/Layer.

The video below demonstrates it.

 

 

Yes! That was exactly what I was looking for! Thank you so much for taking your time to explain this with a video. Much appreciated!

Link to comment
Share on other sites

Tried both the methods. Results in case anyone finds it useful

1. Method with hiding all except base object and resizing the group/layer works plus all my alignments keeps intact too.

2. Second method, using Transform Objects Separately works too but objects could also get misaligned.

Thanks for the help!

Cheers

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.