Skip to main content

loadBrushesAsync

Makes all built-in brushes of the specified type available for use in the plugin. This function must be called before setting the stroke of a node to a brush of the specified type.

There are two types of brushes: 'STRETCH' brushes, which stretch along the length of the stroke, and 'SCATTER' brushes, which scatter instances of the brush shape along the stroke.

Signature

loadBrushesAsync(brushType: 'STRETCH' | 'SCATTER'): Promise<void>

Parameters

brushType

The type of brush to load. Can be either 'STRETCH' or 'SCATTER'.

Remarks

This function only needs to be called once per plugin run for each brush type that will be used. Once loaded, brushes of the specified type can be used freely.