ljfm Posted August 22, 2019 Share Posted August 22, 2019 Hi everyone, I have one square (4,5 x 3,5mm). Im try to show a measure limits with a Dash Line Style and i don´t know what happen with. In the image below you can see what i wanna do. How put the corners in a square with dash line? Anyone can help me, i try everything whit Cap, Phase, Miter,... Thanks! LesterFM Quote Link to comment Share on other sites More sharing options...
Staff Dan C Posted August 22, 2019 Staff Share Posted August 22, 2019 Hi ljfm There's no direct option to make this kind of shape in Affinity, however it's possible by changing the stroke settings. I've drawn a rectangle that measures 4.5 x 3.5mm and applied a dash line style to this. I then used the following settings, which provided me the below result- I hope this helps! Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
ljfm Posted August 23, 2019 Author Share Posted August 23, 2019 Thanks a lot. @Dan C Helps for this measure, but, is not similar to my example and what happen if i need another height or width? I think that this tool need improvements because take too much time for do it as you want. Maybe i can go fast if the decimals in the input fields, can be changed with the mouse wheel. After all, thanks. Quote Link to comment Share on other sites More sharing options...
Staff Dan C Posted August 23, 2019 Staff Share Posted August 23, 2019 I understand, it does require a little bit of 'trial and error' in its current state to achieve this effect, I'd recommend creating a Feedback post for our devs to see and consider changing this in the future 12 minutes ago, ljfm said: Maybe i can go fast if the decimals in the input fields, can be changed with the mouse wheel. The fields can be edited using the mouse wheel, but this will always increase in increments of 1, not decimals. Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
Joachim_L Posted August 23, 2019 Share Posted August 23, 2019 3 minutes ago, Dan C said: The fields can be edited using the mouse wheel, but this will always increase in increments of 1, not decimals. No for all fields. Enter e.g. 2 into the second field from the left and move the scroll wheel down. Next value is 1, but after that not 0 but 0,05. Quote ------ 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 More sharing options...
Aammppaa Posted August 23, 2019 Share Posted August 23, 2019 13 minutes ago, Dan C said: The fields can be edited using the mouse wheel, but this will always increase in increments of 1, not decimals Erm... hold Control (on PC, so Command on Mac?) to scroll by 0.1 Should work in every box throughout Affinity suite. ljfm and Dan C 1 1 Quote 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 More sharing options...
Staff Dan C Posted August 23, 2019 Staff Share Posted August 23, 2019 13 minutes ago, Joachim_L said: No for all fields. Enter e.g. 2 into the second field from the left and move the scroll wheel down. Next value is 1, but after that not 0 but 0,05. This is due to the fact the second field here cannot be 0, therefore it defaults to its lowest value possible, in this case 0.05 5 minutes ago, Aammppaa said: Erm... hold Control (on PC, so Command on Mac?) to scroll by 0.1 Should work in every box throughout Affinity suite. I'll be totally honest - I wasn't aware of that before now! Thanks Aammppaa Joachim_L and Aammppaa 1 1 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
Aammppaa Posted August 23, 2019 Share Posted August 23, 2019 21 minutes ago, Dan C said: I'll be totally honest - I wasn't aware of that before now! Just wait til you try holding Shift and scrolling - your mind will be blown!!!! Dan C and Alfred 2 Quote 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 More sharing options...
ljfm Posted August 23, 2019 Author Share Posted August 23, 2019 Thanks @Aammppaa for the tip! Works! Quote Link to comment Share on other sites More sharing options...
PixelPest Posted August 23, 2019 Share Posted August 23, 2019 3 hours ago, Aammppaa said: Erm... hold Control (on PC, so Command on Mac?) to scroll by 0.1 On Mac It´s alt-key for deciles and shift-key for decadic increments. Dan C and Aammppaa 2 Quote Link to comment Share on other sites More sharing options...
Staff Dan C Posted August 23, 2019 Staff Share Posted August 23, 2019 Thanks for that, I can't find any reference to this in the help files so I've logged it with our documentation team to be updated Alfred 1 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
PixelPest Posted August 23, 2019 Share Posted August 23, 2019 I found an entry about the shift-key and ^(ctrl) in the German Help file at Transforming Objects. Never been sure what ^(ctrl) for Mac user means other than alt/option (⌥) probably? Quote Link to comment Share on other sites More sharing options...
Staff Dan C Posted August 23, 2019 Staff Share Posted August 23, 2019 9 minutes ago, PixelPest said: I found an entry about the shift-key and ^(ctrl) in the German Help file at Transforming Objects. I believe this is related to nudging objects using the arrow keys, not editing values with the scroll wheel - but thank you 10 minutes ago, PixelPest said: Never been sure what ^(ctrl) for Mac user means A Mac keyboard has 4 modifiers (5 including fn) - Shift - Control - Option/Alt - Command (CMD) - All of which are found in the bottom left hand corner of the keyboard (at least in the UK English variant) and Affinity utilises all of these modifiers across the app! PixelPest and ljfm 2 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
PixelPest Posted August 23, 2019 Share Posted August 23, 2019 My iMac keyboard is labeled in another way: ctrl, alt ⌥,cmd ⌘. That explains my confusion I had with ^(ctrl). Nonetheless "ctrl" is occupied by zooming. Dan C 1 Quote Link to comment Share on other sites More sharing options...
Nizer Posted July 17, 2022 Share Posted July 17, 2022 I know this is a very old topic, but I found a more reliable (manual) solution, until Serif implements an automated version. It might need some adjustments for your particular needs. But let me specify my goal: I want to have a box around some content, that is dashed and that the corners are symmetric around this box. The segment and the empty space in my case have the same length. Now, let's understand a little bit on how the dashed stroke works in Affinity designer: The value you insert in the dash and phase boxes are multiples of the width of the stroke in pt units. So let's say you have a line with stroke of 2pt and you use a dash that is (2,2,0,0). The actual result are dashes that are (4pt,4pt,0,0) in your design. And phase, let's say (1), corresponds to a 2pt shift. A more elaborate example: - Create a rectangle that is 10mm x 20mm. - Set the stroke to the desired width, e.g. 2 pt. - You can then convert the rectangle to curves and break the edges using the Node Tool. But, that is not necessary if your dashes have all the same length and your rectangle has an integer aspect ratio. - Now, you have four lines that form your rectangle. Or just a rectangle for equally spaced dashes. - Next, specify how many dashes you want in the horizontal lines, e.g. 3. - Then calculate the value as dash=10mm/3/0.3527777778/2/2, e.g. dash=2.3622 (which corresponds to line_length/n_segments/pt2mm/stroke_width/2). - The phase for symmetric edges is just phase=dash/2, e.g. phase=1.1811. - Finally, you recalculate dash and phase for the vertical lines by changing the line_length to the new line_length and scale up/down the number of segments as n_segments_new = n_segments * line_length_new / line_length. - In this example because height and width of the box are just an integer multiple of each other you will see that recalculating dash and phase will lead to the same values of dash and phase that were obtained for the horizontal lines. If they are not integer multiples of each other, you might have to round up or down the number of segments to the nearest integer and then dash and phase will be different from those of the horizontal lines. Try performing those steps and see if you get the same result as I did! I hope it helps everyone! PS: I know it is a little bit tricky, it might be confusing to some of you. But I really hope it helps! Quote Link to comment Share on other sites More sharing options...
Lorox Posted July 17, 2022 Share Posted July 17, 2022 @ Nizer: well that's quite elaborate, I’d say! But honestly: it's a shame that we're still left to calculations like that. As I wrote quite some time ago: this kind of job (doing that arithmetic) is exactly what computers have been invented for in the first place and we can only hope the devs at Serif finally come to this conclusion as well... It may be comparing apples to oranges but really: this kind of everyday problem in a lot of general design jobs should certainly have been prioritized to – e.g. – enabling users to do fancy astrophotography editing (even if possibly millions of AP user would have dearly missed THAT 😉)... Quote Link to comment Share on other sites More sharing options...
Nizer Posted July 17, 2022 Share Posted July 17, 2022 (edited) 7 minutes ago, Lorox said: @ Nizer: well that's quite elaborate, I’d say! But honestly: it's a shame that we're still left to calculations like that. As I wrote quite some time ago: this kind of job (doing that arithmetic) is exactly what computers have been invented for in the first place and we can only hope the devs at Serif finally come to this conclusion as well... It may be comparing apples to oranges but really: this kind of everyday problem in a lot of general design jobs should certainly have been prioritized to – e.g. – enabling users to do fancy astrophotography editing (even if possibly millions of AP user would have dearly missed THAT 😉)... I do agree with you. I did a feature request as well, lets hope it gets implemented as soon as possible. This is the link for the feature request: @Dan C Edited July 17, 2022 by Nizer NotMyFault and Dan C 1 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.