Issue with flip matrix

Hi all, im completely stumped on an issue i am having with flip matrix, i want to select the row instead of the columns as shown in the picture for the desired effect (orange is the current, and green is the desired).

But when i try to use the flip matrix command it gives me a red reading warning label, im pretty sure im doing something wrong, i just have no idea what that something is.

Any help would be greatly appreciated, ive attached the definition.

Many thanks in advance,

J

20240528 Flip Matrix Problem.gh (32.8 KB)


The Flip Matrix component requires that the data tree be structured like a 2D matrix, with rows and columns that can be swapped. In your case, you should use the Path Mapper component with the mapping {A;B}(i) → {A;i}(B). If maintaining the tree structure isn’t essential, you might consider trimming your tree instead. For more details, you can visit this link.

1 Like

Hi Mahdiyar,

Many thanks for your reply, this is exactly what i needed.

Still very new to the idea path mapper, so the link was very helpful for understanding the throught process behind!

J

This looks like a case for FlipLast by Andrew Heumann (yellow group):


Flip Matrix_2024_Jul4a.gh (45.4 KB)

By the way, I don’t have Pufferfish so just skipped it. You probably want to restore that.

1 Like

Hi Joseph,

Thanks for the reply, this is going to come in very handy in the future!

Best,

J