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

explicit SequenceNode(std::string const &name)
static TypeHandle get_class_type(void)
virtual int get_num_frames(void) const

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).

void set_frame_rate(double 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.