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

Switching an object's frame size to include its full dimensions, including stroke?


Recommended Posts

Searched through the forums, found someone else's single workaround but no reference to such a setting, read through Settings and document setup. I thought it would be a setting for Transform but that doesn't seem to be the case. I'm working on an enamel pin design and it's difficult to get the full dimensions of a pin (or make them fit a dimension) when I have to either constantly commit the outer stroke to vectors or some other workaround. Difficult to keep nondestructive and it can be a lot of extra unnecessary work.

Link to comment
Share on other sites

Not sure I fully understand your situation, but can't you align your stroke to the inside of your shape (via the Strokes panel) so that the dimension remains the same? 

 

If I've not properly understood, could you provide an example file/image? 

Win10 Home x64   |   AMD Ryzen 7 2700X @ 3.7GHz   |   48 GB RAM   |   1TB SSD   |   nVidia GTX 1660   |   Wacom Intuos Pro

Link to comment
Share on other sites

Here's a series of examples for various options (random character chosen, this is a font A, not someone's specific logo):

image.png.e0a8c1e666cdec4c7a37b8f9faac1922.png

In other words, a setting that measures the dimensions of the entire shape, stroke included, is what I am looking for. The width of both object, stroke (separately, for production reasons), and overall object (again, for production reasons), are important. (I'm only really including the third option as a permutation of the settings; it's come in handy for original art but I'm not suggesting it's a fix).

In the instance of actually getting someone's vectors, this is extra important-- the pre-existing form of the logo will probably have aligned-to-center stroke lines and that won't be something that you can just decide not to follow.

Caveat about the enamel pin example: of course those cutouts are a bit ridiculous, but since I wanted an example addressing how outlines are achieved, I'm not bothering with that, it's just not relevant.

Edited by symmetry_feature
addressing aspects of my example that aren't affected by the thing I'm looking for
Link to comment
Share on other sites

Once the stroke is the right width Expand it and place it behind. Use the Centred option, draw it behind and make it twice the width you need for the "enamel". Now if you group the two items, the expanded stroke and the logo you'll have the correct bounding box.

Mac Pro (Late 2013) Mac OS 12.7.2 
Affinity Designer 2.3.1 | Affinity Photo 2.3.1 | Affinity Publisher 2.3.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

I understand a curve as single line with no width. Therefore it needs a stroke (or fill) to appear while the curve itself remains the same and so does its bounding box.

Workaround: calculate curve's bounding box size + 2x stroke width = total size.
(if you deactivate in Preferences > User Interface > Show Lines in points then the stroke width gets displayed in your document's unit)

Or: @Old Bruce's way simplified: just "Expand stroke" to get the total object dimension as bounding box.

Or: rasterize.

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

Link to comment
Share on other sites

12 hours ago, symmetry_feature said:

There is no full-size measurement option?

  • I just checked InDesign CS5.5, and it behaves exactly the same as Affinity. 
  • Whereas Illustrator CS5 keeps the original vector path "as is" but it changes the X,Y values and thus the bounding box based on whether the stroke is inside, outside or centered. That would be what you'd like. But I remember that it used to annoy me to no end because on the other hand, if you want to e.g. snap to a guide, it still snaps to the path, not to the bounding box. No idea if it was a bug or "by design", but it was a major p.i.t.a. in any case. 

So for consistency (and my sanity) sake, I actually prefer the Affinity (and InDesign) method. :) 
If the stroke needs to be handled and measured separately, I'm simply expanding the stroke and then group.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

2 hours ago, loukash said:

I just checked InDesign CS5.5, and it behaves exactly the same as Affinity. 

Then it must have changed in CS6. InDesign seems to align to visual bounding boxes (rather than the stroke alignment point), but allows the user to specify whether strokes are included in the dimensions, while Illustrator (similarly as Affinity apps) aligns -- when doing manual aligning with mouse -- to stroke alignment point, but similarly as InDesign, allows the user to specify whether strokes are included in the dimensions or not. If preview bounds are NOT used, aligning done in the Align panel will be done according to stroke alignment point, otherwise according to preview bounds. I think that ID and AI use identical object model but just have a bit different UI implementations, but both apps allow the user to decide how objects with strokes are dimensioned, and how they are aligned. There are no such options in Affinity apps.

Link to comment
Share on other sites

31 minutes ago, lacerto said:

allows the user to specify whether strokes are included in the dimensions

Yeah, that could be it. (Much like I've always wanted Leading to be a paragraph attribute, and not the default character attribute…)  I just may have forgotten that it's an option. (Note to self: look up again)

33 minutes ago, lacerto said:

while Illustrator (similarly as Affinity apps) aligns -- when doing manual aligning with mouse -- to stroke alignment point, but similarly as InDesign, allows the user to specify whether strokes are included in the dimensions or not

Hm… I'll have to double check whether this was already possible in CS5, but I don't think so.

36 minutes ago, lacerto said:

I think that ID and AI use identical object model

Well, in CS5.x it was still a hit or miss. Way too often I ended up with a PDF being embeded when I tried to paste something from AI to ID.
But never mind, that's off topic.
(While at the same time I can't praise enough Serif's groundbreaking idea of their universal document format!)

 

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

1 hour ago, loukash said:

Hm… I'll have to double check whether this was already possible in CS5, but I don't think so.

I checked online documentation for CS4 and these features were already there, and very probably already earlier. Illustrator has the setting under Preferences > General, and in the context menu of the Align panel. InDesign has them in the context menu of the Transform panel. The alignment behavior is different in the apps, Illustrator as a technical drawing software allowing more choices.

Link to comment
Share on other sites

17 minutes ago, lacerto said:

Illustrator has the setting under Preferences > General

Oh.
So obviously that's what "Vorschaubegrenzungen verwenden" does. In all those years, I never figured out… duh. O.o

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

So, now that we've cleared that, I, for one, would actually welcome such an option in Affinity. It can be useful at times. Ideally as a button in the Move tool context toolbar, akin to the Node tool's "Selection box from curves".

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

31 minutes ago, symmetry_feature said:

Since that creeps into feature request, should I take that there?

For sure! :) 

What you can do as a workaround for the time being:

  1. duplicate, leave the original alone, don't move either one 
  2. expand stroke of the duplicate = two separate curve objects with fill
  3. select both → Geometry → boolean Add = one object (plus the original still below, untouched!)
  4. Geometry → Fill Holes, if any
  5. remove fill = now you have a completely blank transparent Curve object where the curve follows the exact stroke outline of the original
  6. nest your original inside
  7. select the parent object = dimensions with stroke
  8. double click to select the child object = dimensions of the original curve bounding box

As long as "Lock Children" is unchecked, the child object will follow the basic transformations of the parent object; except shearing where the stroke distortion won't match the parent outline curve distortion. Also, if there's any stroke pressure in the original, the expanded outline won't match perfectly either (known bug).

This was just a quick test, so now experiment yourself! :) 

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

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.