Class: QgsSymbolAnimationSettings

Contains settings relating to symbol animation.

Added in version 3.26.

class qgis.core.QgsSymbolAnimationSettings[source]

Bases: object

frameRate(self) float[source]

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

See also

setFrameRate()

Return type:

float

isAnimated(self) bool[source]

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)[source]

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

See also

frameRate()

Parameters:

rate (float)

setIsAnimated(self, animated: bool)[source]

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)