panda3d.core.SequenceNode

from panda3d.core import SequenceNode
class SequenceNode

Bases: SelectiveChildNode, AnimInterface

A node that automatically cycles through rendering each one of its children according to its frame rate.

Inheritance diagram

Inheritance diagram of SequenceNode

__init__(name: str) → None
property frame_rate

Changes the advertised frame rate of the SequenceNode. This can be used in conjunction with get_play_rate() to change the effective frame rate of the node.

Return type

float

static getClassType() → TypeHandle
Return type

TypeHandle

getNumFrames() → int

Returns the number of frames in the animation. This is a property of the animation and may not be directly adjusted by the user (although it may change without warning with certain kinds of animations, since this is a virtual method that may be overridden).

setFrameRate(frame_rate: float) → None

Changes the advertised frame rate of the SequenceNode. This can be used in conjunction with get_play_rate() to change the effective frame rate of the node.