Aller au contenu

From Image Modifier

By Kriss Norde

The From Image modifier creates a gradient from color samples taken from an image along a line you define.

Overview

From Image only works on gradients, like the gradient on a Background node. Unlike other modifiers, it is not located in the Modify With menu.

Where to find this node

Right-click a Gradient bar in the Inspector, then select From Image.

Controls tab

Image to Scan
drop into this box the node from the Node Editor whose image you want to color sample.
Start X/Y, End X/Y
two point controls that define the start and end of the line along which samples are taken from the image set in Image to Scan. The points can also be moved directly in the viewer.
Number of Sample Steps
how many individual color samples are taken along the line. The more steps, the more color stops appear on the node's Gradient control.
Edges
how the image edges are treated when the sample line extends beyond the frame of the image. Black: outputs black for every point of the line outside the image. Wrap: wraps the line around the borders of the image. Duplicate: duplicates the image edges as best as possible, continuing the image beyond its original size. Color: outputs a user-definable color instead of black for points outside the image.

Tips

  • You can create a gradient with From Image, then remove the modifier from the Gradient control: the created gradient stays intact and can then be fine-tuned by hand.