csc.layers.CyclesEditor

class csc.layers.CyclesEditor

Cycle editor class. Represents an editor for managing cycles within layers

__init__(self: csc.layers.CyclesEditor, layer: csc.layers.Layer) None

Methods

__init__(self, layer)

change_inactive_parts(self, arg0, arg1, arg2)

create_cycle(self, arg0, arg1, arg2)

Creates a cycle within the layer structure.

delete_cycle(self, arg0)

Deletes a cycle from the layer structure.

find_cycle(self, arg0)

Finds a cycle by the specified position.

normalize(self)

__annotations__ = {}
__init__(self: csc.layers.CyclesEditor, layer: csc.layers.Layer) None
__module__ = 'csc.layers'
change_inactive_parts(self: csc.layers.CyclesEditor, arg0: int, arg1: int, arg2: int) None
create_cycle(self: csc.layers.CyclesEditor, arg0: int, arg1: int, arg2: bool) csc.layers.Cycle

Creates a cycle within the layer structure.

Parameters:
  • left_inactive_frame_index (int) – The index of the left inactive frame.

  • right_inactive_frame_index (int) – The index of the right inactive frame.

  • first_active_frame_index (int) – The index of the first active frame.

  • last_active_frame_index (int) – The index of the last active frame.

  • following_interval (int) – The following interval.

Returns:

The created cycle.

Return type:

csc.layers.Cycle

delete_cycle(self: csc.layers.CyclesEditor, arg0: int) None

Deletes a cycle from the layer structure.

Parameters:

cycle (csc.layers.Cycle) – The cycle to delete.

find_cycle(self: csc.layers.CyclesEditor, arg0: int) object

Finds a cycle by the specified position.

Parameters:

pos (int) – The position to search for.

Returns:

The found cycle.

Return type:

csc.layers.Cycle

normalize(self: csc.layers.CyclesEditor) None