GetLayers

This function returns an array of all the Layer names used in the project. If there are no Layers defined in the Project the array will always return one entry of ‘Background’.

Function

Array GetLayers();

Parameters

None

Return Value

An array of all Layer names in the project

Example

var aLayers = GetLayers();
for (var i=0; i < aLayers.length; i++) {
    LogDebug("Layer " + i + " is " + aLayers[i]);
}