Name
LayerToFront -- move layer to frontmost z-position (V5.0)
Synopsis
LayerToFront(layer[, swap])
Function
This command moves the specified layer all the way to the front. LayerToFront() is a convenience function. The same could be achieved by using SwapLayers() or SetLayerZPos().

If the optional argument swap is set to False, the layer is brought to the front by simply moving it to the front. This is different from the default behaviour which simply swaps the positions of the front layer and the layer specified by layer. If swap is set to False, layer can also be the name of a layer group.

Inputs
layer
layer to move to the front
swap
set this to False if the layers shouldn't swap positions but the specified layer should just be moved to the front (defaults to True) (V7.1)

Show TOC