Module NLA
[frames] | no frames]

Module NLA

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.
PyAction
CopyAction(action)
Copy an action and it's keyframes
Dictionary of PyActions
GetActions()
Get all actions and return them as a Key : Value Dictionary.
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.
  __package__ = None
Function Details

NewAction(name='DefaultAction')

 

Create a new Action object.

Parameters:
  • name (string) - The Action name.
Returns: PyAction

CopyAction(action)

 

Copy an action and it's keyframes

Parameters:
  • action (PyAction) - The action to be copied.
Returns: PyAction
A copied action

GetActions()

 

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
  • USEX: Turn off automatic single-axis cycling and use X as an offset axis. Note that you can use multiple axes at once.
  • USEY: Turn off automatic single-axis cycling and use Y as an offset axis. Note that you can use multiple axes at once.
  • USEZ: Turn off automatic single-axis cycling and use Z as an offset axis. Note that you can use multiple axes at once.
  • AUTO_BLEND: Automatic calculation of blend in/out values
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