December 2017, updated July 2020
NUKE PIXELSORT PLUGIN
(Made using a combination of PixelSort and PixelRepeat, a similar gizmo)
Download down below!
BlinkScript makes it possible to do heavy image processing tasks within Nuke.
A good example of such a task is pixel sorting – there is a cool subreddit for this effect, and Kim Asendorf (who popularized this effect with his many amazing examples) wrote a script you can download and use in Processing.
I decided to write a simple pixel sort node for Nuke as practice in Blinkscript, and it has some extra features!
All pixel sorted images and video on this page were made entirely in Nuke, using this plugin.
I left the Blinkscript node unlocked and commented for those who want to learn the basics of it using practical examples. Hope it helps!
Update: this page used to be about a Pixelsort plugin written in the NDK, but since I don’t want to compile it for every new Nuke version I’ve decided to rewrite it using Blinkscript.
Or, if you’re looking for the old version of this plugin which was written in the NDK, you can download a compiled v1.6 and its source code here.
Sadly, this one doesn’t work in Nuke 12 and up.
1. Place the PixelSort folder in your .nuke folder (or somewhere else on your computer)
2. Go to your .nuke folder, and create a file called ‘init.py’. If such a file already exists, open it.
3. In the init.py file, add this line of text to the end and save it:
Installation using NukeShared
1. Place the PixelSort folder in the ‘_AutoInstaller’ repository.
NukeShared is a way of installing plugins by dragging/dropping them in folders, see this page for more information.
Nuke pixel sorting explained
All this plugin does, is ordering all pixels based on their luminance. Or, if you want to, based on a second input.
Photo by Rudi Nieuwenhuis
From a short film by Koen Olijerhoek, Alrik Wiggers and Juriaan Wolters – shot by Dionne Cats
The “sort” input is used, if enabled in the gizmo, to ‘prioritize’ regions.
This input determines in what order the pixels will be sorted. For example, paint over it to control the intensities like so:
This is a simple setup to control the sorting intensity using a ramp:
To make it look a bit more interesting, you could multiply some noise in there:
Examples of pixel sorting using this plugin
All photos down below by Suleiman Alaoui