Zig zag conversion -

Hi! Does anyone know how to convert a straight line into a zig-zag line with parameters. I want to be able to make any 2dline into a “zig-zag” and be able to control the length/protrusion of the points…

Try this.
zigzag.gh (22.8 KB)

Hey Cool, so I am not sure where to assign the curve too… can you show me a little demo on how this works?

Right click the input Curve component and Set One Curve or Set Multiple Curves
or
Use the Geometry Pipeline component to pull in all curves on a specific layer

Assigns the line to the Curve component.
Vary the values ​​of the scrollers so you see what happens.

Great, I’m going to play around with this! Thanks @leopoldomonzani

Super cool. Question - I have multiple lines that I need to “convert” to my zig zag. Once I settle on the size of the zig zag, is there a way to carry that over to other lines somehow? I thought I could just copy/paste and then stretch or shrink to the new line I need to convert (all lines are at different lengths), but it transforms the zigzag. Is this possible somehow ? for it to know based on what I have “set” how to then add more/less “counts” to the new line length somehow?

@leopoldomonzani I also love the idea of this being able to be a “curved zig zag” instead of your typical pointed—like a “wave” Could this also be possible? Thanks!

Assigns all lines to the same component.
The lines can also be divided by a fixed length.
Obviously to have a perfect division their length must be a multiple of the predetermined length.
For rounding you can use Fillet.(scroller Radius)
zig zag a.gh (14.0 KB)

sweeeett.. I’m currently working on something else but will switch back to this later today/this weekend and will need for early next week. I’ll try to get my questions to you today — I know I’m already doing something wrong but looking forward to looking at what you have soon, Thanks again!

Heyyyy @leopoldomonzani — Ok so I tested on just one curve. and it’s fkg beautiful, thank you. Now that I want to move on to all my other 50 or so curves/lines - with this exact pattern, how does one actually do that at this point?

@leopoldomonzani @Tom_Newsom am I supposed to bake first, or something? when I go to set another curve I lose the first pattern and it does nothing to this new curve I’m trying to set. So I guess I lose everything?

See Leo’s latest .gh below. Maybe you already answered this, but If I put all these curves (various lengths) on one layer, you’re saying I could use this geometry thing to run this? does it look like this?

Exactly. You’ll need to double click the * for Layer and type the correct layer name, and also double click the “paperclip” icon to turn on the Curve filter. You might need to right click the input of the Offset component to Graft the curves, seeing as the Crv component is currently shown as grafted. I don’t have access to Rhino at this moment so can’t examine the .gh

OMG THAT WORKED, Thank you!!! Amazing.Thanks, @Tom_Newsom @leopoldomonzani

@Tom_Newsom you sound busy :grimacing: but is there a way to now get rid of the original curves and keep my zigzags?!

Go to whichever component is at the end of the chain, right click and Bake. Make sure to choose an output layer that is not your input layer!

ohhhhhh right right… it’s been a min (I’m a real gh newbie still)… Beautiful!

ughhhhghgh sorry, so now I’m left with like orphaned line work that I can’t seem to get rid of. I can’t seem to “clear values” or something.

@Tom_Newsom @leopoldomonzani