Go to file
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
build_files Audaspace: fixing problems for the merge to master suggested by Campbell and Sergey. 2015-07-28 14:01:53 +02:00
doc BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
extern OpenSubdiv: Commit of OpenSubdiv integration into Blender 2015-07-20 22:29:26 +02:00
intern OpenSubdiv: Support shadeless shading 2015-08-03 20:18:33 +02:00
release OpenSubdiv: Made it a modifier option to enable OSD for viewport 2015-08-03 17:51:18 +02:00
scons@625d446ae8 Fixed border extension for the sunbeams node. 2014-09-23 11:42:11 +02:00
source BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
tests BLI_math 'compare' cleanup & enhancements. 2015-07-10 15:02:43 +02:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt OpenSubdiv: Add CMake option to enable -Werror in subsurf code 2015-07-30 10:31:22 +02:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile CMake: use functions instead of macros 2015-06-17 09:38:24 +10:00
SConstruct Audaspace: building without audaspace. 2015-07-28 14:53:06 +02:00