I am trying to duplicate and evenly space the small “tab” curve along the edge of the pentagon. I would like to have three evenly space tabs along one edge of the shape, equidistant from both the vertices and each other. I have tried to orient the object along the curve then arraycrv but the “tab” object is not evenly spaced in the way I described above.
Can someone help me figure it out? A picture is below and I can attach more for clarification if needed.
To evenly space three items, place five - the two end ones are there only to set the limits and can be deleted. The ones between need only lie on the line, the script will space them evenly- use Direction > User and set the direction snapping along the side of the shape and then set spacing style to ‘Gaps’ Tabs.3dm (40.3 KB)
-Pascal
You could use the Move command to position the tab along the curve. Then mirror it about a perpendicular curve (in blue) snapped to the mid point. You would then copy one of the tabs and with smart track on move snap it to the perpendicular curve.
[edit] it sort of seems like ArrayLinear should have an option to do this except when you drag the objects to set the distance, you drag the last one in the array while the rest of them fall in between instead of dragging the 2nd one in the array to set individual spacing… does that make sense to anybody else? lol)
Basic math stuff then draw line along the curve to spacing distance (4.5). Then mirror along a perp curve snapped to the mid point. Then copy and move as before. Jeff I like your latest method best super fast and simple, congrats.
Hi Pascal.
I’m trying to fit a few squares along a curve, but ArrayCrv doesn’t work because it doesn’t distribute the all the elements exactly inside the limits of the curve. I have tried ‘Distribute’ script, but it works only for straight lines.
What do I do?
Hi Joddys- try this: ArrayLinear the number of squares you want, Start Flow, set Rigid=Yes, Stretch=Yes. Choose the Line option as the base curve and snap to the to end corners along the base line of the array of squares. Then as the target curve, choose the curvey curve…
To use the script, extract and save the .rvb file from the attached zip archive, then drag and drop the saved rvb over an open Rhino V4 or v5 window. This will load the script, set it up to load on startup in the future and register the alias
ArrayInCurveSpan
(sorry, that’s all I could manage on the spot)
that will run the script much like a regular command. An alias can be typed or added to a toolbar button or keyboard shortcut (F-key).
hey pascal.
that made me try something similar on a straight target line and i’m not getting the results i would expect… i haven’t thought about it much so there may be something obvious i’m missing? or- how would you expect this to turn out?
(see notes in the file)
[EDIT] hmm… yeah… i think i see why it’s doing that and it is probably working right… too tired to get a clear thought on it right now but it’s probably something to do with-- even though the boxes are equally spaced along the line, the midpoint to the first box is 1.5 then the spacing in the middle is 2 then 1.5 again at the end… so when the line stretches out with rigid boxes, the ratio doesn’t work out the same.
edit2-- well, the ratio stays the same… it’s just that the spacing doesn’t work out evenly anymore. etcetc… I’ll shut up now