Dashed line
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
-
Dline.png 70.9 KB
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
Support Staff 1 Posted by john on 17 Oct, 2016 05:35 PM
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 Posted by Zyl on 18 Oct, 2016 03:39 PM
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