Phyton to TouchDesigner / PIXEL SORTING

Hello everybody,

I’m having some trouble translating this script I found ([url]https://github.com/satyarth/pixelsort[/url]), into a script for touchdesigner who cooks live. Any help?

thank you :smiley:

Python is going to be pretty slow implementation of this, certainly not real-time in Touch. If you’re looking for fast real-time pixel sorting you’ll want to think about GLSL TOPs instead.

Take a look at this thread to see some interesting work that Elburz and David Braun have done to help someone else who was interested in a similar technique:

shadertoy.com/view/XdcGWf#