blender/doc/python_api/rst
Mateo de Mayo 23f54076db BGE: Added getActionName() function to KX_GameObject()
It works similar to getActionFrame(), you have to give a layer or not (for layer 0) as the argument and it returns the name of the animation that the object is currently playing.

Example:

```
import bge
own = bge.logic.getCurrentController().owner
own.playAction("SomeAction",0,20)
print(own.getActionName())
```
>> SomeAction

Here is an example file, just open the blend file with the terminal opened
and press P, you can see how the current animation is being printed:
{F217484}

Reviewers: moguri, hg1, panzergame, campbellbarton

Reviewed By: panzergame

Subscribers: campbellbarton, hg1, #game_engine

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1443
2015-08-04 00:10:33 +02:00
..
bge_types BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
bge.app.rst BGE: Fix T43918: adding submodule bge.app including attribute version. 2015-06-15 21:46:56 +02:00
bge.constraints.rst Remove redundant lists, link instead 2015-07-07 21:25:51 +10:00
bge.events.rst BGE doc cleanup: Some small cleanups in the BGE docs: 2014-03-31 22:22:04 -07:00
bge.logic.rst BGE: Fix 2dfilter actuator mode constants. 2015-06-24 15:31:55 +02:00
bge.render.rst BGE: New API method getDisplayDimensions 2015-04-07 18:32:25 +02:00
bge.texture.rst Remove redundant lists, link instead 2015-07-07 21:25:51 +10:00
bge.types.rst BGE: Splitting up the bge.types docs so they are not all on the same page. This should make them much easier to browse. 2013-02-10 06:13:26 +00:00
bgl.rst Documentation update: references to OpenGL tutorials in the python bgl module 2015-02-21 12:16:19 +00:00
change_log.rst update autogenerated changelog. also correct typos in the generator. 2013-05-09 01:58:49 +00:00
gpu.rst Syntax correction for gpu docs, D124 2013-12-23 17:24:23 +11:00
include__bmesh.rst BMesh Py API: add bmesh.geometry.intersect_face_point() 2013-12-06 21:15:56 +11:00
info_api_reference.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_best_practice.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_gotcha.rst Docs; Py API gotcha's section 2015-07-12 20:50:44 +10:00
info_overview.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_quickstart.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_tips_and_tricks.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_tutorial_addon.rst update hand written rst docs 2015-06-18 08:00:46 +10:00