cucumber
(Cucumber)
June 22, 2022, 10:41am
1
Hi! I was wondering if Grasshopper could be used to work with text only.
I was thinking about something like that:
unnamed.gh (11.9 KB)
I think it would be cool to sort all words alphabetically first, and then arrange them randomly. Does someone have an idea how to do this?
inno
June 22, 2022, 10:54am
2
well, why sort them in alphabetical order if then they are going to be arranged randomly?
the Jitter component (Set → Sequence → Jitter) shuffles the elements of a List, I think that could be useful for this
cucumber
(Cucumber)
June 22, 2022, 11:20am
3
Oh, I think you’re right hahah. Do you know how to bundle the text panels together to let them work with Jitter?
inno
June 22, 2022, 12:19pm
4
you can Merge them together, the following will just shuffle the entire sentences:
Shuffle_sentences.gh (16.4 KB)
this shuffles single words taken from the whole text
Shuffle_words.gh (12.7 KB)
if you remove the Flatten it will shuffle the words of each sentence individually (but because a single Seed is provided, all the sentences will be shuffled the same way {they have different word-length tho…} )
1 Like