csc.layers.Cycle

class csc.layers.Cycle

Cycle class. Represents a cycle within the layer structure, containing information about active and inactive frames.

left_inactive_frame_index

The index of the left inactive frame.

Type:

int

right_inactive_frame_index

The index of the right inactive frame.

Type:

int

first_active_frame_index

The index of the first active frame.

Type:

int

last_active_frame_index

The index of the last active frame.

Type:

int

following_interval

The following interval.

Type:

int

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

get_no_pos()

is_the_same_frames_as(self, other_cycle)

Checks if the current cycle has the same frames as another cycle.

left_frame_index(self)

Retrieves the index of the left frame in the cycle.

right_frame_index(self)

Retrieves the index of the right frame in the cycle.

Attributes

first_active_frame_index

following_interval

last_active_frame_index

left_inactive_frame_index

right_inactive_frame_index

__annotations__ = {}
__init__(*args, **kwargs)
__module__ = 'csc.layers'
property first_active_frame_index
property following_interval
static get_no_pos() int
is_the_same_frames_as(self: csc.layers.Cycle, other_cycle: csc.layers.Cycle) bool

Checks if the current cycle has the same frames as another cycle.

Parameters:

other_cycle (csc.layers.Cycle) – The other cycle to compare with.

Returns:

True if the cycles have the same frames, False otherwise.

Return type:

bool

property last_active_frame_index
left_frame_index(self: csc.layers.Cycle) int

Retrieves the index of the left frame in the cycle.

Returns:

The index of the left frame.

Return type:

int

property left_inactive_frame_index
right_frame_index(self: csc.layers.Cycle) int

Retrieves the index of the right frame in the cycle.

Returns:

The index of the right frame.

Return type:

int

property right_inactive_frame_index