AnimControlCollection¶
from acron.core import AnimControlCollection
- class AnimControlCollection¶
Bases:
This is a named collection of
AnimControlpointers. AnAnimControlmay be added to the collection by name. While anAnimControlis associated, its reference count is maintained; associating a newAnimControlwith the same name will decrement the previous control’s reference count (and possibly delete it, unbinding its animation).Inheritance diagram
digraph inheritanceb6029970a1 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AnimControlCollection" [URL="acron.core.AnimControlCollection.html#acron.core.AnimControlCollection",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" -> "AnimControlCollection" [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=""]; }- __init__()¶
Returns the
AnimControlassociated with the given name, or NULL if no such control has been associated.
- clear_anims()¶
Disassociates all anims from this collection.
- find_anim()¶
Returns the
AnimControlassociated with the given name, or NULL if no such control has been associated.
- get_anim()¶
Returns the nth
AnimControlassociated with this collection.
- get_anim_name()¶
Returns the name of the nth
AnimControlassociated with this collection.
- get_frame()¶
Returns the current frame in the named animation, or 0 if the animation is not found.
Returns the current frame in the last-started animation.
- get_num_anims()¶
Returns the number of
AnimControlsassociated with this collection.
- get_num_frames()¶
Returns the total number of frames in the named animation, or 0 if the animation is not found.
Returns the total number of frames in the last-started animation.
- is_playing()¶
Returns true if the named animation is currently playing, false otherwise.
Returns true if the last-started animation is currently playing, false otherwise.
- loop()¶
Starts the named animation looping.
Starts the named animation looping.
- loop_all()¶
Starts all animations looping.
Starts all animations looping.
- output()¶
- play()¶
Starts the named animation playing.
Starts the named animation playing.
- play_all()¶
These functions operate on all anims at once.
Starts all animations playing.
Starts all animations playing.
- pose()¶
Sets to a particular frame in the named animation.
- pose_all()¶
Sets all animations to the indicated frame.
- stop()¶
Stops the named animation.
- stop_all()¶
Stops all currently playing animations. Returns true if any animations were stopped, false if none were playing.
- store_anim()¶
Associates the given
AnimControlwith this collection under the given name. TheAnimControlwill remain associated until a newAnimControlis associated with the same name later, or untilunbind_anim()is called with this name.
- unbind_anim()¶
Removes the
AnimControlassociated with the given name, if any. Returns true if anAnimControlwas removed, false if there was noAnimControlwith the indicated name.
- which_anim_playing()¶
Returns the name of the bound
AnimControlcurrently playing, if any. If more than oneAnimControlis currently playing, returns all of the names separated by spaces.
- write()¶