BinaryAlpha

BinaryAlpha_SplashPage_v01.jpg

Binary Alpha is a very simple, yet super convenient expression that I use all the time, and decided to turn into a quick gizmo.

It analyzes a choice of the RGB, RGBA, or Alpha input and outputs an Alpha Channel (or RGBA result) that is Binary, 0 or 1.  Any Pixels that are not 0 will be turned into 1 (negative numbers also), and 0 will remain 0.  

This is perfect for those “blur, unpremult, set alpha, blur” for tricks extending colors, or if you need a quick matte for finding any rgb color above or below 0, in a CG render passes for example.

The good ol’ blur/unpremult/blur ❤ :

BinaryAlphaExample_v03_copy_2.gif

Basic properties:

binaryAlphaSettings_jpg.jpg

The literal tcl expression is just:

r!=0 || g!=0 || b!=0 || a! = 0 ? 1 : 0

Which in english, translates to something like: 
“if red is not 0, or green is not 0, or blue is not 0, or alpha is not 0, then be 1, or else, be 0”
So it will include negative pixels as an output as 1 as well.

Super simple but hopefully a time saver if you are like me and hate remembering expressions.

Find the tool on nukepedia here:
http://www.nukepedia.com/gizmos/channel/binaryalpha

You can also download this tool at my github, where you’ll find all my public tools in one place:
https://github.com/CreativeLyons/Lyons_Tools_Public/blob/master/04_Channel/BinaryAlpha.nk

Enjoy

GradMagic Tool

GradMagic is an interactive 4 point gradient tool, which can link to cornerpin nodes, and can toggle between live sampling from the plate or baking the color values of the corners.

Can be used for various tasks in prep and DMP,or if you just need a quick 4 point gradient map.

GradMagic_Properties_Screenshot.png

Quick Overview of the properties:

It’s pretty straight forward, heres some basic written steps:
1.) Set your cornerpoints manually or by pressing one of the ‘snap to’ buttons.  Or alternatively you can link or bake your cornerpoints to an existing cornerpin node (or any node with 4 “to” knobs).

2.) If you need to adjust the points once they are baked/linked/ in place, then show the adjust knobs, set the reference frame to snap the adjust points near the main points, and you can then move each cornerpoint while it still retains its animation path.

3.) You can either keep the node live, bake the corner colors on a single frame, or bake the colors over a framerange.  once baked you can adjust the cornerpoints further if you need to cover up more area.  You can adjust the ‘sample size’ at the top if you want to average more colors under each corner point.

4.) Finally you can apply a blur to the edges to help with transition, and you can select the output at the top, whether to show the gradient over the BG input, or just the gradient itself.

Hope you find it useful

A full tutorial video on how to use the tool can be found here on youtube:
https://youtu.be/oge8jMR0LRw

Or here on vimeo:
https://vimeo.com/341514150

Download the tool from nukepedia with this link:
http://www.nukepedia.com/gizmos/draw/gradmagic

You can also download GradMagic from my github link:
https://github.com/CreativeLyons/Lyons_Tools_Public/blob/master/02_Draw/GradMagic.nk

Stay tuned for more tools and tutorials.