Grasshopper

algorithmic modeling for Rhino

As pictured I have a data tree that results in 14 large strings (number actually varies with application). I want to combine those strings into a single string. I have, tried writing to a text file, flattening the tree, joining the output of the tree, and joining the flattened results of the tree. The only result that looks good is the text file. However, it reads back in as a list of 14 individual strings again. Other combinations of actions corrupt the result. ANy advice?

Views: 326

Attachments:

Replies to This Discussion

I'm taking to answering my own posts. ;) Remembered to go back to the GH Primer. Resolved with a vb comp that  had x parameter set to flatten AND set to list access. Then joined results into a single string. Thought it would work with flatten and item access but no joy there.

Attachments:
i don't know if it will work for 100% but :

graft tree with graft component, than flip matrix (oc with flip matrix component)

it may not keep the order of items.

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