Class: QgsSymbolAnimationSettings

class qgis.core.QgsSymbolAnimationSettings

Bases: sip.wrapper

Contains settings relating to symbol animation.

New in version 3.26:

Methods

frameRate

Returns the symbol animation frame rate (in frames per second).

isAnimated

Returns True if the symbol is animated.

setFrameRate

Sets the symbol animation frame rate (in frames per second).

setIsAnimated

Sets whether the symbol is animated.

frameRate(self) float

Returns the symbol animation frame rate (in frames per second).

See also

setFrameRate()

Return type:

float

isAnimated(self) bool

Returns True if the symbol is animated.

This is a user-facing setting for symbols, which allows users to define whether a symbol is animated, and allows for creation of animated symbols via data defined properties.

See also

setIsAnimated()

Return type:

bool

setFrameRate(self, rate: float)

Sets the symbol animation frame rate (in frames per second).

See also

frameRate()

Parameters:

rate (float) –

setIsAnimated(self, animated: bool)

Sets whether the symbol is animated.

This is a user-facing setting for symbols, which allows users to define whether a symbol is animated, and allows for creation of animated symbols via data defined properties.

See also

isAnimated()

Parameters:

animated (bool) –