object.getAction()

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
der_ton
Posts: 0
Joined: Mon Oct 20, 2003 1:02 am

object.getAction()

Post by der_ton »

object.getAction():
BPY_API doc wrote:Returns an action if one is associated with this object (only useful for armature types).
Is there a way to get all the actions linked to an object, if there are more than one?

ascotan
Posts: 0
Joined: Thu May 29, 2003 10:32 pm
Location: Maryland, U.S.

Post by ascotan »

Use the NLA module's getActions() function. Remember that Actions are free floaters not necessarily linked to an object. Each object can have an action linked to it. Object.getAction() gets an action (if any) linked to the object.

Post Reply