image filter level set
LevelSetDT
Updated: 4 May 2022
Author: Eyal
Compatible Nuke versions: 11.3 or later
Compatibility: Linux 64
Image filter plugin similar to Nuke's version of Level-Set node.
Level set can be use in different ways. In my work I mostly use it to push edges and extending them.
It transfrom the alpha into distance transform map, which means every black pixel is returning a value that indicates how far it is from the neaset white pixel.
This has two major diffrences from Nuke's node.
*The resulted vectors have magnitude to them, so each vector pointes to the nearest pixels it finds.
*It is faster to render.
*In the exapmle script below, the grade node is being used to control which pixel are inside the map. all non black pixels will be part of the map.
Installation:
Place it inside the '.nuke' folder, Nuke will load it on startup.
In addtion, add those lines to the menu.py for a unique toolbar:
toolbar = nuke.toolbar('Nodes')
MyPluging = toolbar.addMenu('MyPlugins')
MyPluging.addCommand( 'LevelSetDT', 'nuke.createNode('LevelSetDT')', '' )
This awesome model belongs to Carrisa:
https://sketchfab.com/3d-models/spiderman-b5c87f4ac60b4f5184805edebdd981f4
The tool usage is at the user's risk.