Array Between

Is there a command in rhino that allows you to array an object between two points?
This post isn’t quite what I’m after: ArrayLinear — Can Second Point be the End of the Array? - Rhino / Rhino for Mac - McNeel Forum

See attachments…

The thing is that the array needs to begin with the spacing at the first point and end with the spacing at the last point, creating all equal spaces and forcing the first and last copies of the object to the outside of the two points.

The current manual method I use (demonstrated below) doesn’t really take that long to accomplish, but I really feel like, programing-wise, this should be quite achievable and easily translated into a command. I should probably delve into Grasshopper, but I’m not sure when the time will come.
Anyway, to achieve the ‘ArrayBetween’ I have to place the object (with a bounding box if it’s an odd shape) with its outer face on the outside of my 2 points and draw a line between their centers - then I use ArrayCrv. Not labour-intensive, just curious if a command exists or is in the works.

Cheers!

Hello - for now, get the ends in position and use Distribute to even things out.

-Pascal

1 Like

Great thanks - that’s swifter than my process, thank you.

Would love to see it develop into ‘distribute along a curve’. That’s the dream!

Hello - for distributing along a curve, ArrayCrv may help, otherwise, a linear array and Flow from a line to the curve may do it.

-Pascal

You can also use this python script

3 Likes

Hi Gijs, Im a relative newbie, as far as im aware to run a script you must enter the command ‘run rhino script’ and select it from where ever you have it saved within your files. Is it possible to save a script within Rhino so you don’t have to try and remember where it was saved and go digging for it?

thanks

hi @user3134
There are several ways. Pls have a look here for more info how to use and run scripts.

Thanks but I’m on a Mac…is there a similar help page for Macs? I can’t seem to find one

@user3134 you can Follow this guide to make your own macros in Rhino 7 for mac:

for the rest you can still use the guide I showed, particularly option 4 and 5

1 Like

Fantastic, thank you!

Choose a line along what you want to have the objects.
Then use “Divide” and divide the line into how many equal length segments you need. After that it gives points on the line on which you can copy the objects you want.

yeah, that’s another good way, it does add an extra step in the process though. Also it does not give you equal divisions if you want to place objects of a certain width BETWEEN two points. If you spread objects 100mm wide along points on a divided line you would end up with 50mm overhanging the end points.


Rhino 8 Mac

Line 114
print("can't calculate boundingbox")

@mc11 yes, that script is old and needs updating

BTW, still great script. Thank you for that.