Blender Git Statistics -> Developers -> mateosss

Mateo de Mayo (mateosss)

Total Commits : 1
Master Commits : 1
Branch Commits : 0
First Commit : August 3, 2015
Latest Commit : August 3, 2015

Commits by Month

DateNumber of Commits
August, 20151

Favourite Files

FilenameTotal Edits
bge.types.KX_GameObject.rst1
KX_GameObject.cpp1
KX_GameObject.h1
BL_Action.cpp1
BL_Action.h1
BL_ActionManager.cpp1
BL_ActionManager.h1

File Changes

ActionTotalPer Commit
Modified77.0

Code Changes

ActionTotalPer Commit
Lines Added6565.0
Lines Removed44.0

Latest commits Feed

Revision 23f5407 by Mateo de Mayo / Porteries Tristan (master)
August 3, 2015, 22:10 (GMT)
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

MiikaHweb - Blender Git Statistics v1.06
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021