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’.
Please note, it is also possible to directly get the layer of an equipment by using the GetLayer function.
🔁 Function
Array GetLayers();
⚙️ Parameters
None
↩️ Return Value
An array of string (all Layer names in the project).
📝 Example
var aLayers = GetLayers();
for (var i=0; i < aLayers.length; i++) {
LogDebug("Layer " + i + " is " + aLayers[i]);
}