Module NLA

Module NLA

source code

The Blender.Armature.NLA submodule.

NLA

This module provides access to Action objects in Blender. Actions are a series of keyframes/Ipo curves that define the movement of a bone. Actions are linked to objects of type armature.

Classes
  Action
This object gives access to Action-specific data in Blender.
  ActionStrips
This object gives access to sequence of ActionStrip objects for a particular Object.
  ActionStrip
This object gives access to a particular action strip.
Functions
PyAction
NewAction(name='DefaultAction')
Create a new Action object.
source code
PyAction
CopyAction(action)
Copy an action and it's keyframes
source code
Dictionary of PyActions
GetActions()
Get all actions and return them as a Key : Value Dictionary.
source code
Variables
readonly dictionary Flags
Constant dict used by the ActionStrip.flag attribute.
readonly dictionary Modes
Constant dict used by the ActionStrip.mode attribute.
readonly dictionary StrideAxes
Constant dict used by the ActionStrip.strideAxis attribute.
Function Details

NewAction(name='DefaultAction')

source code 
Create a new Action object.
Parameters:
  • name (string) - The Action name.
Returns: PyAction

CopyAction(action)

source code 
Copy an action and it's keyframes
Parameters:
  • action (PyAction) - The action to be copied.
Returns: PyAction
A copied action

GetActions()

source code 
Get all actions and return them as a Key : Value Dictionary.
Returns: Dictionary of PyActions
All the actions in blender

Variables Details

Flags

Constant dict used by the ActionStrip.flag attribute. It is a bitmask and settings are ORed together.
  • SELECT: action strip is selected in NLA window
  • STRIDE_PATH: play action based on path position and stride.
  • HOLD: continue displaying the last frame past the end of the strip
  • ACTIVE: action strip is active in NLA window
  • LOCK_ACTION: action start/end are automatically mapped to strip duration
  • MUTE: action strip does not contribute to the NLA solution
Type:
readonly dictionary

Modes

Constant dict used by the ActionStrip.mode attribute. Currently the only value is MODE_ADD.
Type:
readonly dictionary

StrideAxes

Constant dict used by the ActionStrip.strideAxis attribute. Values are STRIDEAXIS_X, STRIDEAXIS_Y, and STRIDEAXIS_Z.
Type:
readonly dictionary