# Entwining branches

**URL:** <https://discourse.mcneel.com/t/entwining-branches/109570>\
**Category:** Grasshopper\
**Created:** [September 30, 2020, 12:45pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570 "2020-09-30T12:45:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mpd/32/701834_2.png) [@mpd](https://discourse.mcneel.com/u/mpd)\
**Post date:** [September 30, 2020, 12:45pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570/1 "2020-09-30T12:45:25Z")

</div>

Hello,

How can I entwine the branches and still keep the data structure as shown? Is the only way to do this through python?

I tried with the path mapper, but no luck.

\*Edited with better picture

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/b/dbde4492a0131f294654ddc480da1e909335191a.png)

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [September 30, 2020, 1:34pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570/2 "2020-09-30T13:34:33Z")

</div>

i don’t understand what you are asking.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/0/f/0f7b60ef1b667c2a311c44b09e1c114089339f61.png)

how the data is gathered seems relevant

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [September 30, 2020, 1:41pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570/3 "2020-09-30T13:41:41Z")

</div>

here is a tree branching method

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/f/b/fb6c4ed917c3711bcd620e80b66310d8d407f3f5.png)

---

<div class="post-metadata">

**Author:** ![mpd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mpd/32/701834_2.png) [@mpd](https://discourse.mcneel.com/u/mpd)\
**Post date:** [September 30, 2020, 1:47pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570/4 "2020-09-30T13:47:02Z")

</div>

Thank you for the replies.

So while having only two branches in each input the problem can be easily solved, but what I have is a situation where there might be more or less branches in each list. If that makes sense. I basically want to do what you are showing in your picture, but where the number of input lists can vary.

---

<div class="post-metadata">

**Author:** ![mpd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mpd/32/701834_2.png) [@mpd](https://discourse.mcneel.com/u/mpd)\
**Post date:** [September 30, 2020, 1:57pm UTC](https://discourse.mcneel.com/t/entwining-branches/109570/5 "2020-09-30T13:57:39Z")

</div>

I just realized that your second one will work perfectly for what I am doing. Thank you. 🙂
