Position Ramp

To quikly create a ramp using the data contained in the render of “World Position” or “Ref Position”.

This node has several advantages. The position of the ramp is not set by a “color picker” but with a 2D Position knob which executes callbacks. So it is possible to precisely place the ramp regardless of the channel viewed. With the “Overlay” mode, the tool is visually even more convenient.
Visualization in 3D space is also a real advantage in a certain situation, as well as the integration of the “Unpremult” and “Premult” which makes it possible to obtain clean edges.
The tool is fast and easy to use, and if you don’t have the position pass, ask your Comp or CG supervisor 😉

Tool details:

P Channel: To select the Position Pass channel.
Axe: To choose the ramp direction (x,y or z).
Start & End: To adjust the position of the two extremes of the ramp.
Offset (Start & End): To precisely adjust the position between the two extremes with a slider.
Overlay: To show the ramp on overlay (looking the rgb) and to change the color (none, red, green, blue or black)
3D Options:
– To visualize in 3D the input image and the ramp. This uses a “position to point” node and it gives the possibility to adjust the “Point Detail” and the “Point Size”.
– To adjust the size of 3D points representing the position of the two extremes of the ramp.
(Un)Premult: To keep nice shapes on edges.

For the creation of this tool, I was strongly inspired by the article written by Matt Estela and Pedro Andrade and similar tools, such as those from Ivan Kokov.