Plexora

layer

Look up one layer by id.

Generated from Plexora 0.0.55View source
from plexora.api import layer
layer(project, layer_id)

Parameters

projectProjectrequired

The project record to read the layer from.

layer_idstrrequired

The layer's id, synthesized ids (the reference image, the mask, the centroids) included.

Returns

Value

The matching layer, in the same shape layers() returns, or None if this project has no layer with that id.