Grasshopper

algorithmic modeling for Rhino

I can't seem to find a way to convert a list to a string for example

list with 3 numbers

0

1

0

to string 

010

or list with 3 booleans

F

T

F

to string 

FTF

I could only find ways to to the opposite of what I am looking for. Any ideas?

Views: 2688

Replies to This Discussion

Hey Jonas,

there is a whole text (string) related tab. Set/text. There you can find lots of components to string things and manipulate them.

this could be a way.

this one need text join and text fragment components.

try components to see what they do. it is rewarding and you can find better solutions to problems you thought you have sorted out.

best

alex

Sorry for making you write up this post, I feel dumb now I found it just before you posted it, never before have I dealt with text. Thank you!

no worries! it was an opportunity to mention about components digging. its fun.

it actually was 20 times faster after fragmenting!!!! text distance matching

Fak yes this finally solved all the lagg issues that I was having with 60million Boolean values in branches. 

At this point I am asking myself why are we not stringing all the lists? instead of grafting them? String a list should be a right click option?

string is text. you cannot declare lets say a circle radius with a string. you need a number. graft the list seems irrelevant here. what do you mean string list instead of graft?

But hey the text fragment trick is awesome because my strings were TrueTrueTrue saved /4.5 the time!

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