Select your preferred scripting language. All code snippets will be displayed in this language.
History
Returns the layer index for a named layer.
If the named layer does not exist returns -1.