Get the priority of the layer.
When inside a timeline, this is its index in the timeline. See move_layer.
The Layer
The priority of this within its timeline.