move_layer


Description:

[ Version ( since = "1.16" ) ]
public bool move_layer (Layer layer, uint new_layer_priority)

Moves a layer within the timeline to the index given by new_layer_priority.

An index of 0 corresponds to the layer with the highest priority in a timeline. If new_layer_priority is greater than the number of layers present in the timeline, it will become the lowest priority layer.

Parameters:

this

A Timeline

layer

A layer within this, whose priority should be changed

new_layer_priority

The new index for layer