layerstate-getlayers
 
 
 

Returns the layers saved in a layer state

(layerstate-getlayers layerstatename [invert])

Arguments

layerstatename

A string specifying the name of the layer state to query for layers.

invert

If invert is omitted or nil, returns a list of the layers saved in the layer state. If invert is T, it returns a list of the layers in the drawing that are not saved in the layer state.

Return Values

A list of layer names. Returns nil if the layer state does not exist or contains no layers.

Examples

(layerstate-getlayers “myLayerState“)
(“Layername1” “Layername2“)