AnimData(bpy_struct)

base class — bpy_struct

class bpy.types.AnimData.AnimData(bpy_struct)

Animation data for data-block

action

Active Action for this data-block

Type

Action

action_blend_type

Method used for combining Active Action’s result with result of NLA stack

  • REPLACE Replace, The strip values replace the accumulated results by amount specified by influence.

  • COMBINE Combine, The strip values are combined with accumulated results by appropriately using addition, multiplication, or quaternion math, based on channel type.

  • ADD Add, Weighted result of strip is added to the accumulated results.

  • SUBTRACT Subtract, Weighted result of strip is removed from the accumulated results.

  • MULTIPLY Multiply, Weighted result of strip is multiplied with the accumulated results.

Type

enum in [‘REPLACE’, ‘COMBINE’, ‘ADD’, ‘SUBTRACT’, ‘MULTIPLY’], default ‘REPLACE’

action_extrapolation

Action to take for gaps past the Active Action’s range (when evaluating with NLA)

  • NOTHING Nothing, Strip has no influence past its extents.

  • HOLD Hold, Hold the first frame if no previous strips in track, and always hold last frame.

  • HOLD_FORWARD Hold Forward, Only hold last frame.

Type

enum in [‘NOTHING’, ‘HOLD’, ‘HOLD_FORWARD’], default ‘HOLD’

action_influence

Amount the Active Action contributes to the result of the NLA stack

Type

float in [0, 1], default 1.0

drivers

The Drivers/Expressions for this data-block

Type

AnimDataDrivers bpy_prop_collection of FCurve, (readonly)

nla_tracks

NLA Tracks (i.e. Animation Layers)

Type

NlaTracks bpy_prop_collection of NlaTrack, (readonly)

use_nla

NLA stack is evaluated when evaluating this block

Type

boolean, default False

use_pin
Type

boolean, default False

use_tweak_mode

Whether to enable or disable tweak mode in NLA

Type

boolean, default False

nla_tweak_strip_time_to_scene(frame, invert=False)

Convert a time value from the local time of the tweaked strip to scene time, exactly as done by built-in key editing tools. Returns the input time unchanged if not tweaking.

Parameters
  • frame (float in [-1.04857e+06, 1.04857e+06]) – Input time

  • invert (boolean, (optional)) – Invert, Convert scene time to action time

Returns

Converted time

Return type

float in [-1.04857e+06, 1.04857e+06]

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

  • bpy_struct.id_data

Inherited Functions

  • bpy_struct.as_pointer

  • bpy_struct.driver_add

  • bpy_struct.driver_remove

  • bpy_struct.get

  • bpy_struct.is_property_hidden

  • bpy_struct.is_property_overridable_library

  • bpy_struct.is_property_readonly

  • bpy_struct.is_property_set

  • bpy_struct.items

  • bpy_struct.keyframe_delete

  • bpy_struct.keyframe_insert

  • bpy_struct.keys

  • bpy_struct.path_from_id

  • bpy_struct.path_resolve

  • bpy_struct.pop

  • bpy_struct.property_overridable_library_set

  • bpy_struct.property_unset

  • bpy_struct.type_recast

  • bpy_struct.values

References

  • Armature.animation_data

  • CacheFile.animation_data

  • Camera.animation_data

  • Curve.animation_data

  • FreestyleLineStyle.animation_data

  • GreasePencil.animation_data

  • Hair.animation_data

  • ID.animation_data_create

  • Key.animation_data

  • Lattice.animation_data

  • Light.animation_data

  • LightProbe.animation_data

  • Mask.animation_data

  • Material.animation_data

  • Mesh.animation_data

  • MetaBall.animation_data

  • MovieClip.animation_data

  • NodeTree.animation_data

  • Object.animation_data

  • ParticleSettings.animation_data

  • PointCloud.animation_data

  • Scene.animation_data

  • Simulation.animation_data

  • Speaker.animation_data

  • Texture.animation_data

  • Volume.animation_data

  • World.animation_data