Grasshopper

algorithmic modeling for Rhino

Hi! Simple question...I think....

I have a data structure like this

Input A=5 branches with 10 items each

Input B= 5 branches with 10 items each

I want to weave them together so that I get 10 branches with 10 items each, alternating between A and B.

When I use the weave component I get 5 branches with 20 items each and that is not what I want!

Anyone know how to achieve what I am trying to do? Thanks in advance!

Views: 4072

Replies to This Discussion

Try this, You will need to match the path mapper, The quickest way to do this is  plug-in in you data then right click on the path mapper component and create null mapping, this you will see will match the number of levels in your tree and then you just have to add ;+1 after the last letter in the same way as i have done in the image. 

Hi Matt, would you mind sharing that definition? It's a little hard to make out which wires connect to what.

I managed to follow along but at the end I get {0}, {0,1}, {1}, {0,2}, etc. instead of {0},{1},{2} etc like you have, so I think I did something wrong.

Thanks a lot though! This looks like exactly what I needed!

Sounds like you where very close, think all you need to do is click on the Tree Branch component and untick Maintain Paths. Looking back i forgot to note that in my first comment.

Attached the code as requested... Thanks for the heads up i will space my code out abit more in future when answer questions so its easier read for all.

Attachments:

Thanks Matt! Unchecking that was all I needed to do!

I tried searching for weaving branches and didn't come up with anything useful, I hope this post will help future users.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service