Forum

Unzip Texture 2d

Hi guys spend whole day trying to make my head around this one, really only need for one place in my patch, but if anyone willing to help.

so there is generic unzip node

there is cons node from vux

so far i ended up trying to at list make it work somehow… but it dead broken…
anyone know any example i can use close to unzip or do some snippet to help.
might just point out mistakes… so i can fix it myself…

ValueUnzipTest2.zip (1.9 kB)

pain and struggle…
so… i have BinSize pin and i want to slice input spread across pins
what i have to do?
i end up with this code

for (int i = 0; i < FBin.SliceCount ; i++)
            {
                for (int j = 0; j < FBin[i](i); j++)
                {
                    var inputSpread = FInputs[i+j](i+j).IOObject;
                    var outputSpread = FOutputs[i+j](i+j).IOObject;
                    outputSpread.AssignFrom(inputSpread);
                }
            }

obviously it’s not working…