user: Describe MovieTrackingStabilization(bpy_struct) from the Blender manual or Python API, including usage steps and snippets.

assistant: # MovieTrackingStabilization(bpy_struct)

base class — [`bpy_struct`](bpy.types.bpy_struct.html#bpy.types.bpy_struct "bpy.types.bpy_struct")

*class* bpy.types.MovieTrackingStabilization(*bpy_struct*)
:   2D stabilization based on tracking markers

    active_rotation_track_index
    :   Index of active track in rotation stabilization tracks list

        Type:
        :   int in [-inf, inf], default 0

    active_track_index
    :   Index of active track in translation stabilization tracks list

        Type:
        :   int in [-inf, inf], default 0

    anchor_frame
    :   Reference point to anchor stabilization (other frames will be adjusted relative to this frame’s position)

        Type:
        :   int in [0, 1048574], default 0

    filter_type
    :   Interpolation to use for sub-pixel shifts and rotations due to stabilization

        - `NEAREST`
          Nearest – No interpolation, use nearest neighbor pixel.
        - `BILINEAR`
          Bilinear – Simple interpolation between adjacent pixels.
        - `BICUBIC`
          Bicubic – High quality pixel interpolation.

        Type:
        :   enum in [`'NEAREST'`, `'BILINEAR'`, `'BICUBIC'`], default `'NEAREST'`

    influence_location
    :   Influence of stabilization algorithm on footage location

        Type:
        :   float in [0, 1], default 0.0

    influence_rotation
    :   Influence of stabilization algorithm on footage rotation

        Type:
        :   float in [0, 1], default 0.0

    influence_scale
    :   Influence of stabilization algorithm on footage scale

        Type:
        :   float in [0, 1], default 0.0

    rotation_tracks
    :   Collection of tracks used for 2D stabilization (translation)

        Type:
        :   [`bpy_prop_collection`](bpy.types.bpy_prop_collection.html#bpy.types.bpy_prop_collection "bpy.types.bpy_prop_collection") of [`MovieTrackingTrack`](bpy.types.MovieTrackingTrack.html#bpy.types.MovieTrackingTrack "bpy.types.MovieTrackingTrack"), (readonly)

    scale_max
    :   Limit the amount of automatic scaling

        Type:
        :   float in [0, 10], default 0.0

    show_tracks_expanded
    :   Show UI list of tracks participating in stabilization

        Type:
        :   boolean, default False

    target_position
    :   Known relative offset of original shot, will be subtracted (e.g. for panning shot, can be animated)

        Type:
        :   [`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 2 items in [-inf, inf], default (0.0, 0.0)

    target_rotation
    :   Rotation present on original shot, will be compensated (e.g. for deliberate tilting)

        Type:
        :   float in [-inf, inf], default 0.0

    target_scale
    :   Explicitly scale resulting frame to compensate zoom of original shot

        Type:
        :   float in [1.192e-07, inf], default 0.0

    tracks
    :   Collection of tracks used for 2D stabilization (translation)

        Type:
        :   [`bpy_prop_collection`](bpy.types.bpy_prop_collection.html#bpy.types.bpy_prop_collection "bpy.types.bpy_prop_collection") of [`MovieTrackingTrack`](bpy.types.MovieTrackingTrack.html#bpy.types.MovieTrackingTrack "bpy.types.MovieTrackingTrack"), (readonly)

    use_2d_stabilization
    :   Use 2D stabilization for footage

        Type:
        :   boolean, default False

    use_autoscale
    :   Automatically scale footage to cover unfilled areas when stabilizing

        Type:
        :   boolean, default False

    use_stabilize_rotation
    :   Stabilize detected rotation around center of frame

        Type:
        :   boolean, default False

    use_stabilize_scale
    :   Compensate any scale changes relative to center of rotation

        Type:
        :   boolean, default False

    *classmethod* bl_rna_get_subclass(*id*, *default=None*, */*)
    :   Parameters:
        :   **id** (*str*) – The RNA type identifier.

        Returns:
        :   The RNA type or default when not found.

        Return type:
        :   [`bpy.types.Struct`](bpy.types.Struct.html#bpy.types.Struct "bpy.types.Struct") subclass

    *classmethod* bl_rna_get_subclass_py(*id*, *default=None*, */*)
    :   Parameters:
        :   **id** (*str*) – The RNA type identifier.

        Returns:
        :   The class or default when not found.

        Return type:
        :   type