How to change number order in grid for pixels

Hi, I have a 6x6x36 grid of rgb led pixels. I have managed to get art net to output but the mapping on my device is soooo funky.

I have attached screenshots of how my mapping is actually from a Birds Eye view



. and screenshots of what tounchdesigner is trying to do. I am totally lost on how to get this to map!

Hi @jgarland05,

Hopefully you don’t have to do this too often. Simplest might be just to use a SOP To DAT and extract the points attributes, now create a second table with a single column called index and fill in the new order. Use a Merge DAT setting the How parameter to “Replace Cells by Column” and use the original SOP To DAT plus your single column Table DAT as the inputs.
Finally use a DAT To SOP on your original geometry and the outcome of the Merge DAT as the Points Table.

Because it is messing up the geometry of the initial grid, you can add a Add SOP and enable “Delete Geometry, Keep Points”. For your case this has no functional impact but nicely hides the otherwise messed up grid geometry.

cheers
Markus

Hi! thank you so much for this! Im just struggling on where I should connect my last dat to sop based on my setup?

sorry not sure if I should have tagged you in reply above! @snaut

Hi @jgarland05,

right after your Grid SOP.

cheers
Markus