panda3d.core.AnimGroup

class AnimGroup

Bases: TypedWritableReferenceCount, Namable

This is the base class for AnimChannel and AnimBundle. It implements a hierarchy of AnimChannels. The root of the hierarchy must be an AnimBundle.

Inheritance diagram

Inheritance diagram of AnimGroup

__init__(parent: AnimGroup, name: str) → None

Creates the AnimGroup, and adds it to the indicated parent. The only way to delete it subsequently is to delete the entire hierarchy.

__init__(param0: AnimGroup) → None
getNumChildren() → int

Returns the number of child nodes of the group.

getChild(n: int) → AnimGroup

Returns the nth child of the group.

Return type

AnimGroup

getChildNamed(name: str) → AnimGroup

Returns the first child found with the indicated name, or NULL if no such child exists. This method searches only the children of this particular AnimGroup; it does not recursively search the entire graph. See also findChild().

Return type

AnimGroup

findChild(name: str) → AnimGroup

Returns the first descendant found with the indicated name, or NULL if no such descendant exists. This method searches the entire graph beginning at this AnimGroup; see also getChildNamed().

Return type

AnimGroup

sortDescendants() → None

Sorts the children nodes at each level of the hierarchy into alphabetical order. This should be done after creating the hierarchy, to guarantee that the correct names will match up together when the AnimBundle is later bound to a PlayerRoot.

output(out: ostream) → None

Writes a one-line description of the group.

write(out: ostream, indent_level: int) → None

Writes a brief description of the group and all of its descendants.

static getClassType() → TypeHandle
Return type

TypeHandle

getChildren() → list
property children

Returns the nth child of the group.

Return type

Sequence[AnimGroup]