Dashed line

Zyl's Avatar

Zyl

17 Oct, 2016 12:37 PM

Hello,
I need to create curved dashed / dotted (random curvature, rotation and position) line. My first hint was to use stack node (img. attached). Is there a better way to do this and is it possible to create dashed line from (shape or color) stroke?

Kind regards

  1. Support Staff 1 Posted by john on 17 Oct, 2016 05:35 PM

    john's Avatar

    Hi Zyl,

    The node you need is "shape on path". It takes any path and distributes a shape (e.g. a dot or a dash) along that path. You can either specify a fixed amount and have the shapes distributed evenly, or place them with a fixed amount of space between each one.

    I have attached a simple example. I create a random path by combining a line, arc, and quad curve. I then distribute elongated ellipses along that path to create a dotted line. (You could use round ellipses or line segments or little rectangles or whatever.) I then feed the dots into a colorize node to assign them a set of random colors.

    Please let me know if this satisfies you!

    John

  2. 2 Posted by Zyl on 18 Oct, 2016 03:39 PM

    Zyl's Avatar

    Hi John,
    Thank you for your effort and this interesting approach, really appreciate it.
    I'm using this technique in one design project, I'll let you know the results as soon as I can.

    Best

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Dline.png 70.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Feb, 2025 11:13 AM
15 Feb, 2025 12:51 PM
06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM

 

30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM
30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM