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 May, 2024 02:11 AM
16 May, 2024 01:58 AM
14 May, 2024 01:29 AM
13 May, 2024 12:36 AM
12 May, 2024 07:46 PM

 

05 May, 2024 04:38 PM
03 May, 2024 06:50 AM
03 May, 2024 12:30 AM
03 May, 2024 12:09 AM
19 Apr, 2024 04:41 AM
16 Apr, 2024 06:18 PM