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

Define border strokes separately?


Recommended Posts

Hi I'm trying to define border strokes separately on a rectangle.

Say I want a plain stroke on all sides, except the top side, where I want a dashed stroke.

image.thumb.png.179de1b0804e50f210e841ee6bd44867.png

Any way to do that? I can't see any parameters that would.

If it's not there, does it mean I need to remove the stroke and then draw multiple lines on top?

Link to comment
Share on other sites

18 minutes ago, andmocychmen said:

Any way to do that?

Not that I know, but you can do this with a table having only one cell.

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Link to comment
Share on other sites

As an alternative to @Joachim_L's suggestion, here's a really quick way of doing this:

rect_dash.thumb.gif.a7f5b3ad0b39d20882b13e310a17ba26.gif

Draw two rectangles: one with just the fill and one with just the outline. Convert the outline rectangle to curves. With the node tool, break the curve at the top left and top right node. This will separate the top line from the rest of the object. Select the top line and apply an individual stroke to it. There are downsides of this approach (e.g. after converting to curves, you'll lose rectangle properties for your outline object), but this is the easiest way I can think of to make this work.

Link to comment
Share on other sites

46 minutes ago, kaffeeundsalz said:

Draw two rectangles: one with just the fill and one with just the outline. Convert the outline rectangle to curves. With the node tool, break the curve at the top left and top right node. This will separate the top line from the rest of the object. Select the top line and apply an individual stroke to it. There are downsides of this approach (e.g. after converting to curves, you'll lose rectangle properties for your outline object), but this is the easiest way I can think of to make this work.

Nice. Thank you.

Link to comment
Share on other sites

It is possible non-destructively without adding another object:

ade_dashed_stroke_side.png.7dec34c1d1544acad8c909402a315ecb.png

 

(Um… my wife's just told me she's hungry, so I have to cook dinner now. Let me know if you've found out how it works in the meantime. If not, I'll get back to you about in an hour or two, to tell you the whole secret… :D)

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

In Publisher, alternatively to tables, you can also use text frames with a blank paragraph decoration. That's really easy peasy and much more precise:

apu_dashed_stroke_side.png.8367d23035a67b5471c8e8914c84b4f0.png

Of course, you can then switch back to Designer. All text frame and paragraph attributes will remain intact, albeit not editable.

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.