blender/doc/python_api
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
..
blender-org
epy
examples BGE: bge.texture API documentation enhancement 2015-07-06 21:48:25 +02:00
rst BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
rst_from_bmesh_opdefines.py Add flag for bmesh docs 2014-09-09 22:07:31 +10:00
sphinx_changelog_gen.py cleanup: pep8 2015-01-29 15:35:06 +11:00
sphinx_doc_gen_monkeypatch.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
sphinx_doc_gen.py Docs: Python API, minor edits to download link 2015-08-01 20:10:25 +10:00
sphinx_doc_gen.sh API Docs: remove hardcoded self from shellscript 2014-11-26 20:24:04 +01:00