Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5892

Orient / ArrayOnCrv with 2 reference points

$
0
0

@Mario_ILL wrote:

The goal is to array an object along a curve using 2 reference points, so the start of the next instance is the end of the previous object.
Example: array a fix sized fence frames over a fence line.

This is how I do this step by step:
Measure the Distance (S1-S2) of the object or fixed distance you want to use.
Orient the source object point S1 to the curve start point T1.
For S2 put in the distance (S1-S2) for the next step. With this fix distance find the intersection point on the curve T2.
In the Orient function set the option Copy and continue with S1=T2 and repeat the previous steps until the end of the curve is reached.

Can someone help to script this command?

If Rhino developers read this: An adapted ArrayOnCrv function for this could benefit from the record history option so you can adjust the curve afterwards.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5892

Trending Articles