Separate tree branches

quick tl;dr. i have a simple paragraph of text, which is then divided into single words, then those words are turned into curves, so each branch has a set of curves that represent a single word. Im trying to partition the branch paths into sets of seven so i have a data tree which has the number of words/7 branches, so for example i have a tree with 0;0-0;6 which is a set of 7 words with each seperate branch containing curves. with the paths existing inside different branches youd expect the resulting structure to have the same length as words/7 with each branch containing the other subbranches of each word. however thats not the case and idk why, the resulting structure simply is the same as the one i started with. its really late so sorry if this paragraph is kind of confusing, ask me anything


ALIGN TEXT TO SHAPE.gh (13.6 KB)

SOS I AM USING WOMBAT TO GET THE CURVES SRY

please post a version with internalized geometry - best a version that already has the text as Curves - so wombat is not needed.
thx

ALIGN TEXT TO SHAPEhelp.gh (139.8 KB)
here

depending on how you want the final result to be structured, you can use 1 or 2:

ALIGN TEXT TO SHAPEhelp_Re.gh (126.5 KB)

1: data is organized as {index_of_group_of_seven_words ; index_of_word)
2: data is organized as {index_of_group_of_seven_words_alltogether)

as your original text is made of 50 words, you of course get 7 groups of 7 words + 1 group with just 1 word (path {7;0} )

ALIGN TEXT.gh (12.9 KB)

pathmapper with a formula ?

if 7 is not static, there is also a dynamic pathmapper script

groupsOf7.gh (125.1 KB)

this is pretty much the simplest way of solving it, was kind of lost with the items in the branches

if only it wasnt so late i wouldve just groupped the words from their source before turning them into curves, masterfully done kind sir.

idk that much about lexical operations so id need some info on the floor(A/x) and the A%x part

a/x
a divided by x

floor()
round down to next integer for example 4.1 and 4.7 will become 4

%
Modulo operator

1 Like