Grasshopper

algorithmic modeling for Rhino

Hey Guys,

I need your help here, cause Ive tried so many times to do script this and code a component to do this but it seems like a very hard task

what I need is to python script what is happening here. divide a list of curves into points, and then connect these points with a line within the component. I am having trouble writing a script to access the list of points, and then extracting the NTH item of each branch, and then flattening the Nth item into one list

for example:

if I have CURVE1 ( POINT 1A, POINT 2A POINT 3A) CURVE2 ( POINT1B, POINT 2B,)

id like to end up with having ( POINT 1A with POINT 1B) and ( POINT 2A with POINT 2B)

Views: 711

Attachments:

Replies to This Discussion

I may be misunderstanding what you're trying to do, but you might be able to just use a Path Mapper component with a mapping something like: {0;A}(n) -> {0;n}(A) to switch branches with list positions and then run a polyline through the resulting lists.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service