Get name of active NLA strip?


(wiimote) #1

Hi, I have a few actions lined up in the NLA editor, and a text object in my 3D viewport that is supposed to display the name of the NLA strip that is currently playing. I am able to get the name of the currently selected action in the dopesheet, but getting the name of the active NLA strip doesn’t seem to be so easy.

I was expecting that something like this would work, but it doesn’t.

scene.nla_tracks.strip.active.name

or

scene.objects["mycharacter"].animation_data.nla_tracks.active_strip.name

The documentation isn’t helping either, but maybe one of you can.