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

Ghpython incremental loop question

$
0
0

Hey good-looking friends,

I am trying to learn ghpython, I tried to:

  1. divide the first curve (use the Midpoints from each segment as the "destination points),
  2. move the second curve to each and every destination points provided),
  3. rotate at each points


I am really grateful if you can help me understand a few question that I am currently having:
1.I used “incremental loop” in all three steps in order to get the similar effect as “Graft” data datatree in regular gh, but I don’t understand the “Output” generated by the loop, i.e. the amount of data will increase following its index number, instead of one geometry at each places as I intended:
image

  1. Could you please take a look at my current script (inside Ghpython)
    python question.gh (115.1 KB)

is there anyway to streamline the whole process e.g. I don’t need to loop to convert the GUID to Point3D everytime and I don’t need to “loop” and “append” in order to move geometries,

I appreciate your help~~~

Tom

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4165

Latest Images

Trending Articles



Latest Images