AnimGroup

from acron.core import AnimGroup
class AnimGroup

Bases:

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

digraph inheritancea11c67502f { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AnimGroup" [URL="acron.core.AnimGroup.html#acron.core.AnimGroup",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AnimGroup" [arrowsize=0.75,style=""]; "Namable" -> "AnimGroup" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
__init__()

This is the normal AnimGroup constructor.

The default constructor is protected: don’t try to create an AnimGroup without a parent. To create an AnimChannel hierarchy, you must first create an AnimBundle, and use that to create any subsequent children.

Creates a new AnimGroup, just like this one, without copying any children. The new copy is added to the indicated parent. Intended to be called by make_copy() only.

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

property children → Sequence[AnimGroup]

Returns the nth child of the group.

find_child()

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

get_child()

Returns the nth child of the group.

get_child_named()

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

get_children() → list
static get_class_type()
get_num_children()

Returns the number of child nodes of the group.

output()

Writes a one-line description of the group.

sort_descendants()

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.

write()

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