Material Sampler

Summary

The Material Sampler samples an Input Shape and then outputs values of between 0-1 depending on the value (lightness/darkness) of the shape (e.g. black = 0, white = 0). Alternatively it will output the color if connected to an attribute that supports it (e.g. Fill Color).

It can be used in combination with Shaders to control attributes for other shapes and is particular useful when used alongside a Duplicator.

UI

‚ÄčCommon Attributes +

Value - a multiplier.

Input Path - connect a Shape with a Material to sample from.

Graph - use the graph to remap the output values.

Offset - add/subtract a value to the output(s).

Example usage:

  1. Import an image. to the Assets Window.

  2. Drag the image into the Scene Window (this will create a Footage Shape).

  3. Create a Material Sampler.

  4. Connect footageShape.id > materialSampler.inputShape.

  5. Create a Rectangle.

  6. With the Rectangle selected, click the Duplicator Shelf item.

  7. Connect materialSampler.id > duplicator.shapeScale.

The shapes will be scaled dependent on the image.

The Material Sampler does not currently support SkSL Shaders (this includes the Noise Shader).

The Material Sampler does not currently support frame changes when used within a Pre Comp. Please try and use a Group instead of a Composition if possible as a workaround.

Contents
Summary
UI