AnimControlCollection

from panda3d.core import AnimControlCollection
class AnimControlCollection

Bases: DTOOL_SUPER_BASE

This is a named collection of AnimControl pointers. An AnimControl may be added to the collection by name. While an AnimControl is associated, its reference count is maintained; associating a new AnimControl with the same name will decrement the previous control’s reference count (and possibly delete it, unbinding its animation).

Inheritance diagram

Inheritance diagram of AnimControlCollection

__init__(*args, **kwargs)
clearAnims()

C++ Interface: clear_anims(const AnimControlCollection self)

/**
  • Disassociates all anims from this collection.

*/

clear_anims()

C++ Interface: clear_anims(const AnimControlCollection self)

/**
  • Disassociates all anims from this collection.

*/

findAnim()

C++ Interface: find_anim(AnimControlCollection self, str name)

/**
  • Returns the AnimControl associated with the given name, or NULL if no such

  • control has been associated.

*/

find_anim()

C++ Interface: find_anim(AnimControlCollection self, str name)

/**
  • Returns the AnimControl associated with the given name, or NULL if no such

  • control has been associated.

*/

getAnim()

C++ Interface: get_anim(AnimControlCollection self, int n)

/**
  • Returns the nth AnimControl associated with this collection.

*/

getAnimName()

C++ Interface: get_anim_name(AnimControlCollection self, int n)

/**
  • Returns the name of the nth AnimControl associated with this collection.

*/

getAnimNames()
getAnims()
getFrame()

C++ Interface: get_frame(AnimControlCollection self) get_frame(AnimControlCollection self, str anim_name)

/**
  • 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.

*/

getNumAnims()

C++ Interface: get_num_anims(AnimControlCollection self)

/**
  • Returns the number of AnimControls associated with this collection.

*/

getNumFrames()

C++ Interface: get_num_frames(AnimControlCollection self) get_num_frames(AnimControlCollection self, str anim_name)

/**
  • 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.

*/

get_anim()

C++ Interface: get_anim(AnimControlCollection self, int n)

/**
  • Returns the nth AnimControl associated with this collection.

*/

get_anim_name()

C++ Interface: get_anim_name(AnimControlCollection self, int n)

/**
  • Returns the name of the nth AnimControl associated with this collection.

*/

get_anim_names()
get_anims()
get_frame()

C++ Interface: get_frame(AnimControlCollection self) get_frame(AnimControlCollection self, str anim_name)

/**
  • 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()

C++ Interface: get_num_anims(AnimControlCollection self)

/**
  • Returns the number of AnimControls associated with this collection.

*/

get_num_frames()

C++ Interface: get_num_frames(AnimControlCollection self) get_num_frames(AnimControlCollection self, str anim_name)

/**
  • 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.

*/

isPlaying()

C++ Interface: is_playing(AnimControlCollection self) is_playing(AnimControlCollection self, str anim_name)

/**
  • Returns true if the named animation is currently playing, false otherwise.

*/

/**
  • Returns true if the last-started animation is currently playing, false

  • otherwise.

*/

is_playing()

C++ Interface: is_playing(AnimControlCollection self) is_playing(AnimControlCollection self, str anim_name)

/**
  • Returns true if the named animation is currently playing, false otherwise.

*/

/**
  • Returns true if the last-started animation is currently playing, false

  • otherwise.

*/

loop()

C++ Interface: loop(const AnimControlCollection self, str anim_name, bool restart) loop(const AnimControlCollection self, str anim_name, bool restart, double from, double to)

/**
  • Starts the named animation looping.

*/

/**
  • Starts the named animation looping.

*/

loopAll()

C++ Interface: loop_all(const AnimControlCollection self, bool restart) loop_all(const AnimControlCollection self, bool restart, double from, double to)

/**
  • Starts all animations looping.

*/

/**
  • Starts all animations looping.

*/

loop_all()

C++ Interface: loop_all(const AnimControlCollection self, bool restart) loop_all(const AnimControlCollection self, bool restart, double from, double to)

/**
  • Starts all animations looping.

*/

/**
  • Starts all animations looping.

*/

output()

C++ Interface: output(AnimControlCollection self, ostream out)

/**

*/

play()

C++ Interface: play(const AnimControlCollection self, str anim_name) play(const AnimControlCollection self, str anim_name, double from, double to)

/**
  • Starts the named animation playing.

*/

/**
  • Starts the named animation playing.

*/

playAll()

C++ Interface: play_all(const AnimControlCollection self) play_all(const AnimControlCollection self, double from, double to)

// These functions operate on all anims at once.

/**
  • Starts all animations playing.

*/

/**
  • Starts all animations playing.

*/

play_all()

C++ Interface: play_all(const AnimControlCollection self) play_all(const AnimControlCollection self, double from, double to)

// These functions operate on all anims at once.

/**
  • Starts all animations playing.

*/

/**
  • Starts all animations playing.

*/

pose()

C++ Interface: pose(const AnimControlCollection self, str anim_name, double frame)

/**
  • Sets to a particular frame in the named animation.

*/

poseAll()

C++ Interface: pose_all(const AnimControlCollection self, double frame)

/**
  • Sets all animations to the indicated frame.

*/

pose_all()

C++ Interface: pose_all(const AnimControlCollection self, double frame)

/**
  • Sets all animations to the indicated frame.

*/

stop()

C++ Interface: stop(const AnimControlCollection self, str anim_name)

/**
  • Stops the named animation.

*/

stopAll()

C++ Interface: stop_all(const AnimControlCollection self)

/**
  • Stops all currently playing animations. Returns true if any animations

  • were stopped, false if none were playing.

*/

stop_all()

C++ Interface: stop_all(const AnimControlCollection self)

/**
  • Stops all currently playing animations. Returns true if any animations

  • were stopped, false if none were playing.

*/

storeAnim()

C++ Interface: store_anim(const AnimControlCollection self, AnimControl control, str name)

/**
  • Associates the given AnimControl with this collection under the given name.

  • The AnimControl will remain associated until a new AnimControl is

  • associated with the same name later, or until unbind_anim() is called with

  • this name.

*/

store_anim()

C++ Interface: store_anim(const AnimControlCollection self, AnimControl control, str name)

/**
  • Associates the given AnimControl with this collection under the given name.

  • The AnimControl will remain associated until a new AnimControl is

  • associated with the same name later, or until unbind_anim() is called with

  • this name.

*/

unbindAnim()

C++ Interface: unbind_anim(const AnimControlCollection self, str name)

/**
  • Removes the AnimControl associated with the given name, if any. Returns

  • true if an AnimControl was removed, false if there was no AnimControl with

  • the indicated name.

*/

unbind_anim()

C++ Interface: unbind_anim(const AnimControlCollection self, str name)

/**
  • Removes the AnimControl associated with the given name, if any. Returns

  • true if an AnimControl was removed, false if there was no AnimControl with

  • the indicated name.

*/

whichAnimPlaying()

C++ Interface: which_anim_playing(AnimControlCollection self)

/**
  • Returns the name of the bound AnimControl currently playing, if any. If

  • more than one AnimControl is currently playing, returns all of the names

  • separated by spaces.

*/

which_anim_playing()

C++ Interface: which_anim_playing(AnimControlCollection self)

/**
  • Returns the name of the bound AnimControl currently playing, if any. If

  • more than one AnimControl is currently playing, returns all of the names

  • separated by spaces.

*/

write()

C++ Interface: write(AnimControlCollection self, ostream out)

/**

*/