algorithmic modeling for Rhino
Hello,
I never used grasshopper for text editing (nor have I got any experience in scripting) and don't even know if this is possible. I hope that you could give me some guides how to start. Below i post steps i think would be correct:
1) Import text file to grasshopper
2) Search for specific letter or expression (ex. look for "hello")
3) Place suffix with randomized numeric value (for example "my name is <value between 120-150>" after every "hello" found in text
I would like to use it for 3D printing, to be more specific for randomizing material temperature (so it would slightly change its color on diffrent layers :) ).
Thank you for your time.
Tags:
Thank you very much! Your definition works great.
Could you please explain to me why you used expressions in these two spots? I dont get it (I know it doesn't work without it but why?).
Also is there a way to Split text by letter? What i mean is to split HELLO to H;E;L;L;O
Once again thank you for your help!
Hello Wujo
list length outputs how many indexes we have, but the range component with a step of six would output 7 values, one more than needed, so the x-1 expression gets rid of the extra not needed.
In insert list item the x+1 expression makes sure that the text added goes after the index provided, otherwise it would be before the one we want.
You can change the parameters and experiment to see results.
To split text by letter the way you describe ;'s should be in between each letter in the original text.So in order to have each letter you need character component found in tab set/text to break each word into letters
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by