Dynamo - Build curves from point lists

Dynamo - Build curves from point lists

danielcUPK8E
Advocate Advocate
2,776 Views
3 Replies
Message 1 of 4

Dynamo - Build curves from point lists

danielcUPK8E
Advocate
Advocate

Hi, I'm a fairly new user of Dynamo for Alias and I'm trying to build NURBS curves that run through a list of points on section curves. The list of points, from each of the section curves, is combined into a single list and I'm then using 'GetItemFromIndex' to grab the first point from each list sublevel to create the NURBS curve. Does anyone know how I can create all the NURBS curves at once by 'Getting' the 2nd point of each list, followed by the 3rd, and the fourth and so on?

 

Thanks in advance for any help!2020-02-12_14-20-11.png

0 Likes
2,777 Views
3 Replies
Replies (3)
Message 2 of 4

c3systems
Advocate
Advocate

Hi Daniel,

I think your solution seems too complicated..

Couple of points..

1, Don't know why you need multiple "From Alias" nodes. You can import all the curves at once as a "List"

2, The trick is to "transpose" the matrix or Lists.

 

transpose.png

 

It might be difficult to understand Lists if you are not familiar with Matrix. Please do take a look at https://www.mathsisfun.com/algebra/matrix-introduction.html

 

Hope it helps.

Hope it helps.

Message 3 of 4

danielcUPK8E
Advocate
Advocate

Thanks! That really helps.

0 Likes
Message 4 of 4

danielcUPK8E
Advocate
Advocate

Hi again,

 

I was hoping you could help me a little further along. I want to build a NURBS curve from the 'nth' point of each list i.e. join point 1 from each curve, join point 2 from each curve etc (as I have done for the first curve shown in my image). I also deliberately did not transpose the lists so I could 'ShiftIndices' of each point set by different amounts on each curve (maybe there is a simpler way to do this).

 

Thanks again for your time!

0 Likes