Brushes

A collection of brushes.

Methods:

add, addAndLoad, getByName

Property Listing

Property

Type

Access

Description

length

Int

readonly

Number of elements in the collection.

parent

 

readonly

The object's container.

typename

String

readonly

The class name of the object.

Method Listing

Brush add (brushDefinition:File, [brushName:String])

Create a brush.

Parameter

Type

Description

brushDefinition

File

The brush definition from which the brush would be created.

brushName

String

The name of the brush.

Brush addAndLoad (brushDefinition:File)

Create a brush, select the brush tool and load the created brush in the brush tool.

Parameter

Type

Description

brushDefinition

File

The brush definition from which the brush would be created.

Brush getByName (name:String)

Get the first element in the collection with the provided name.

Parameter

Type

Description

name

String

 

Object of

Document.brushes