Hello,
I have 3 text files containing some data organised into columns “a” to “g” (see screenshot).
These text files have been parsed using the native “Read File” Grasshopper component and form a tree with 3 branches where each branch contains a different text file.
Problem: there is no data in columns “e” to “f” at the end of files 0 and 2. So when transposing the tree using Path Mapper, lists corresponding to columns “e”, “f”, “g” will be shorter than lists “a”, “b”, “c”, “d”.
Because file 1 does not have missing values at the end, columns “a” through “g” of file 1 have equal lengths.
I need all lists (columns “a” through “g”) of the same text file to have equal lengths.
I get the desired output when using the Flip Matrix component but this component doesn’t work for trees.
Question: is there a way to achieve this without having to manually equalise the list lengths (by adding zeros at the end for example)?
Thanks!
preserve length.gh (175.0 KB)