byName()

app.project.item(index).layers.byName(name)

Description

Returns the first (topmost) layer found in this collection with the specified name, or null if no layer with the given name is found.

Parameters

name A string containing the name.

Returns

Layer object or null.

Other Tags

Posted in LayerCollection object and tagged , , , , , , , .