Grasshopper

algorithmic modeling for Rhino

Is there a way to append to a data tree? Or, in other words, combine two data trees (with matching path structures) but not merge them?

For example, I have two trees:

(Paths = 2)
{0;1}
{0;2}

and

(Paths = 3)
{0;1}
{0;2}
{0;3}

and I would like to get

(Paths = 5)
{0;1}
{0;2}
{0;3}
{0;4}
{0;5}

Any ideas?

Views: 2912

Replies to This Discussion

Taz,
Just curious... but did you ever figure out the SubString expression?
I can't make it work either in an expression component. It might be broken. It works in a vb.net component.
well, that's a strange one...

thanks for checking.
I'm glad it wasn't just me... I've been trying every different substring syntax (in an expression, not vb.net) I could think of and nothing seemed to work. Glad, this is repeatable by others. Perhaps David could take a look.
hi taz

the only way for me to remove the curly brackets @ a point was format("{0},{1},{2}",x.x,x.y,x.z)

-to]

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