Grasshopper

algorithmic modeling for Rhino

Does anyone have a solution that does not involve scripting for the following problem:

 

I have two data trees with the exact same number of paths and items but with different addresses. For example:

 

Tree A

{0;0;0} N = 2

{0;0;1} N = 3

{0;0;2} N = 5

{0;0;3} N = 4

 

Tree B

{0;0;0} N = 2

{0;0;1} N = 3

{0;1;0} N = 5

{0;1;1} N = 4

 

I want the data in Tree A but with the path addresses in Tree B. Any ideas? I thought that ReplaceBranch would work, but it doesn't seem to be doing what I thought. There must be an easy solution that I am missing. Thanks.

Views: 752

Replies to This Discussion

This is perhaps what you want.

This works too, but I have the bad feeling I am missing something.

Hey Andrew,

I just learned how to do this with the help of Danny Boyles.  The key is to use the param viewer component to build the mask from the source list.

I love your work by the way...been watching it for over a year.  

Hope it helps.

Stan Carroll

 

Attachments:
That is much better than my dubious solution !

Sorry, I meant Danny Boyes.  Sorry Danny

Stan

Thanks! That is exactly what I thought ReplaceBranch would do but for some reason I was entering the wrong combo of inputs (I had lots of weird wildcards in the mask). I knew there had to be an easy solution.

 

And thanks for the compliment!

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