Grasshopper

algorithmic modeling for Rhino

Splitting a tree and reversing the order for alternate branches

What mask should I use to achieve the following.

In the tree I might have

1 2 3 4 5 6 7 8   Branch 1

9 10 11 12 13 14  Branch 2

15 16 17 18 19  Branch 3

20 21 22 23 24 25 26 27 Branch 4

I need to achieve

1 2 3 4 5 6 7 8   Branch 1

14 13 12 11 10 9 Branch 2

15 16 17 18 19  Branch 3

27 26 25 24 23 22 21 20 Branch 4

Many thanks

William

Views: 1328

Replies to This Discussion

Like this?

Attachments:
Will try this when I get back to work tomorrow. Manu thanks.

I have run the script but it only reverses one branch.  I need alternating branches to be reversed.

Many thanks

Just need to change the spilitting mask a bit.

Attachments:

Many thanks. Yep have arranged to attend a short course on Python.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service