Layer#

class pyflp.channel.Layer[source]#

Bases: Channel, ModelCollection[Channel]

https://img.shields.io/badge/FL%20Studio-3.4.0+-5f686d?labelColor=ff7629&style=for-the-badge

Represents a layer channel present in the channel rack.

__getitem__(i: int | str | slice) Channel[source]#

Returns a child Channel with an IID of Channel.iid.

Parameters:

i โ€“ IID or 0-based index of the child(ren).

Raises:

ChannelNotFound โ€“ Child(ren) with the specific index or IID couldnโ€™t be found. This exception derives from KeyError as well.

__iter__() Iterator[Channel][source]#
__len__() int[source]#

Returns the number of channels whose parent this layer is.

crossfade: bool | None#

Miscellaneous functions โ€ฃ Layering

random: bool | None#

Miscellaneous functions โ€ฃ Layering