Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

11.5 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";

/** bpy.ops.nla */
export interface Ops {
  /**
   * Push action down onto the top of the NLA stack as a new strip
   *
   * bpy.ops.nla.action_pushdown
   */
  action_pushdown: H.Operator<{
    /** Index of NLA action track to perform pushdown operation on Default: -1. */
    track_index?: H.In<number>;
  }>;
  /**
   * Synchronize the length of the referenced Action with the length used in the strip
   *
   * bpy.ops.nla.action_sync_length
   */
  action_sync_length: H.Operator<{
    /** Only sync the active length for the active strip Default: True. */
    active?: H.In<boolean>;
  }>;
  /**
   * Unlink this action from the active action slot (and/or exit Tweak Mode)
   *
   * bpy.ops.nla.action_unlink
   */
  action_unlink: H.Operator<{
    /** Clear Fake User and remove copy stashed in this data-block's NLA stack Default: False. */
    force_delete?: H.In<boolean>;
  }>;
  /**
   * Add an Action-Clip strip (i.e. an NLA Strip referencing an Action) to the active track
   *
   * bpy.ops.nla.actionclip_add
   */
  actionclip_add: H.Operator<{
    /** Action Default: ''. */
    action?: H.In<string>;
  }>;
  /**
   * Apply scaling of selected strips to their referenced Actions
   *
   * bpy.ops.nla.apply_scale
   */
  apply_scale: H.Operator<{}>;
  /**
   * Bake all selected objects location/scale/rotation animation to an action
   *
   * bpy.ops.nla.bake
   */
  bake: H.Operator<{
    /** Start frame for baking Default: 1. */
    frame_start?: H.In<number>;
    /** End frame for baking Default: 250. */
    frame_end?: H.In<number>;
    /** Number of frames to skip forward while baking each frame Default: 1. */
    step?: H.In<number>;
    /** Only key selected bones (Pose baking only) Default: True. */
    only_selected?: H.In<boolean>;
    /** Keyframe from the final transformations (with constraints applied) Default: False. */
    visual_keying?: H.In<boolean>;
    /** Remove all constraints from keyed object/bones. To get a correct bake with this setting Visual Keying should be enabled Default: False. */
    clear_constraints?: H.In<boolean>;
    /** Bake animation onto the object then clear parents (objects only) Default: False. */
    clear_parents?: H.In<boolean>;
    /** Bake animation into current action, instead of creating a new one (useful for baking only part of bones in an armature) Default: False. */
    use_current_action?: H.In<boolean>;
    /** After baking curves, remove redundant keys Default: False. */
    clean_curves?: H.In<boolean>;
    /**
     * Which data's transformations to bake Default: {'POSE'}.
     * - `POSE`: Pose (Bake bones transformations)
     * - `OBJECT`: Object (Bake object transformations)
     */
    bake_types?: H.In<Set<"POSE" | "OBJECT">>;
    /**
     * Which channels to bake Default: {'BBONE', 'LOCATION', 'PROPS', 'ROTATION', 'SCALE'}.
     * - `LOCATION`: Location (Bake location channels)
     * - `ROTATION`: Rotation (Bake rotation channels)
     * - `SCALE`: Scale (Bake scale channels)
     * - `BBONE`: B-Bone (Bake B-Bone channels)
     * - `PROPS`: Custom Properties (Bake custom properties)
     */
    channel_types?: H.In<Set<"LOCATION" | "ROTATION" | "SCALE" | "BBONE" | "PROPS">>;
  }>;
  /**
   * Handle clicks to select NLA tracks
   *
   * bpy.ops.nla.channels_click
   */
  channels_click: H.Operator<{
    /** Extend Select Default: False. */
    extend?: H.In<boolean>;
  }>;
  /**
   * Reset scaling of selected strips
   *
   * bpy.ops.nla.clear_scale
   */
  clear_scale: H.Operator<{}>;
  /**
   * Handle clicks to select NLA Strips
   *
   * bpy.ops.nla.click_select
   */
  click_select: H.Operator<{
    /** Wait to Deselect Others Default: False. */
    wait_to_deselect_others?: H.In<boolean>;
    /** Instead of selecting on mouse press, wait to see if there's drag event. Otherwise select on mouse release Default: False. */
    use_select_on_click?: H.In<boolean>;
    /** Mouse X Default: 0. */
    mouse_x?: H.In<number>;
    /** Mouse Y Default: 0. */
    mouse_y?: H.In<number>;
    /** Extend Select Default: False. */
    extend?: H.In<boolean>;
    /** Deselect all when nothing under the cursor Default: False. */
    deselect_all?: H.In<boolean>;
  }>;
  /**
   * Delete selected strips
   *
   * bpy.ops.nla.delete
   */
  delete: H.Operator<{}>;
  /**
   * Duplicate selected NLA-Strips, adding the new strips to new track(s)
   *
   * bpy.ops.nla.duplicate
   */
  duplicate: H.Operator<{
    /** When duplicating strips, assign new copies of the actions they use Default: False. */
    linked?: H.In<boolean>;
  }>;
  /**
   * Duplicate Linked selected NLA-Strips, adding the new strips to new track(s)
   *
   * bpy.ops.nla.duplicate_linked_move
   */
  duplicate_linked_move: H.Operator<{
    /** Duplicate selected NLA-Strips, adding the new strips to new track(s) */
    NLA_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Duplicate selected NLA-Strips, adding the new strips to new track(s)
   *
   * bpy.ops.nla.duplicate_move
   */
  duplicate_move: H.Operator<{
    /** Duplicate selected NLA-Strips, adding the new strips to new track(s) */
    NLA_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Add F-Modifier to the active/selected NLA-Strips
   *
   * bpy.ops.nla.fmodifier_add
   */
  fmodifier_add: H.Operator<{
    /** Type Default: 'NULL'. */
    type?: H.In<E.FCurveModifiersType>;
    /** Only add a F-Modifier of the specified type to the active strip Default: True. */
    only_active?: H.In<boolean>;
  }>;
  /**
   * Copy the F-Modifier(s) of the active NLA-Strip
   *
   * bpy.ops.nla.fmodifier_copy
   */
  fmodifier_copy: H.Operator<{}>;
  /**
   * Add copied F-Modifiers to the selected NLA-Strips
   *
   * bpy.ops.nla.fmodifier_paste
   */
  fmodifier_paste: H.Operator<{
    /** Only paste F-Modifiers on active strip Default: True. */
    only_active?: H.In<boolean>;
    /** Replace existing F-Modifiers, instead of just appending to the end of the existing list Default: False. */
    replace?: H.In<boolean>;
  }>;
  /**
   * Make linked action local to each strip
   *
   * bpy.ops.nla.make_single_user
   */
  make_single_user: H.Operator<{
    /** Prompt for confirmation Default: True. */
    confirm?: H.In<boolean>;
  }>;
  /**
   * Add new meta-strips incorporating the selected strips
   *
   * bpy.ops.nla.meta_add
   */
  meta_add: H.Operator<{}>;
  /**
   * Separate out the strips held by the selected meta-strips
   *
   * bpy.ops.nla.meta_remove
   */
  meta_remove: H.Operator<{}>;
  /**
   * Move selected strips down a track if there's room
   *
   * bpy.ops.nla.move_down
   */
  move_down: H.Operator<{}>;
  /**
   * Move selected strips up a track if there's room
   *
   * bpy.ops.nla.move_up
   */
  move_up: H.Operator<{}>;
  /**
   * Mute or un-mute selected strips
   *
   * bpy.ops.nla.mute_toggle
   */
  mute_toggle: H.Operator<{}>;
  /**
   * Set Preview Range based on extents of selected strips
   *
   * bpy.ops.nla.previewrange_set
   */
  previewrange_set: H.Operator<{}>;
  /**
   * Select or deselect all NLA-Strips
   *
   * bpy.ops.nla.select_all
   */
  select_all: H.Operator<{
    /**
     * Selection action to execute Default: 'TOGGLE'.
     * - `TOGGLE`: Toggle (Toggle selection for all elements)
     * - `SELECT`: Select (Select all elements)
     * - `DESELECT`: Deselect (Deselect all elements)
     * - `INVERT`: Invert (Invert selection of all elements)
     */
    action?: H.In<"TOGGLE" | "SELECT" | "DESELECT" | "INVERT">;
  }>;
  /**
   * Use box selection to grab NLA-Strips
   *
   * bpy.ops.nla.select_box
   */
  select_box: H.Operator<{
    /** Axis Range Default: False. */
    axis_range?: H.In<boolean>;
    /** Operator has been activated using a click-drag event Default: False. */
    tweak?: H.In<boolean>;
    /** X Min Default: 0. */
    xmin?: H.In<number>;
    /** X Max Default: 0. */
    xmax?: H.In<number>;
    /** Y Min Default: 0. */
    ymin?: H.In<number>;
    /** Y Max Default: 0. */
    ymax?: H.In<number>;
    /** Wait for Input Default: True. */
    wait_for_input?: H.In<boolean>;
    /**
     * Mode Default: 'SET'.
     * - `SET`: Set (Set a new selection)
     * - `ADD`: Extend (Extend existing selection)
     * - `SUB`: Subtract (Subtract existing selection)
     */
    mode?: H.In<"SET" | "ADD" | "SUB">;
  }>;
  /**
   * Select strips to the left or the right of the current frame
   *
   * bpy.ops.nla.select_leftright
   */
  select_leftright: H.Operator<{
    /**
     * Mode Default: 'CHECK'.
     * - `CHECK`: Based on Mouse Position
     * - `LEFT`: Before Current Frame
     * - `RIGHT`: After Current Frame
     */
    mode?: H.In<"CHECK" | "LEFT" | "RIGHT">;
    /** Extend Select Default: False. */
    extend?: H.In<boolean>;
  }>;
  /**
   * Make selected objects appear in NLA Editor by adding Animation Data
   *
   * bpy.ops.nla.selected_objects_add
   */
  selected_objects_add: H.Operator<{}>;
  /**
   * Move start of strips to specified time
   *
   * bpy.ops.nla.snap
   */
  snap: H.Operator<{
    /**
     * Type Default: 'CFRA'.
     * - `CFRA`: Selection to Current Frame
     * - `NEAREST_FRAME`: Selection to Nearest Frame
     * - `NEAREST_SECOND`: Selection to Nearest Second
     * - `NEAREST_MARKER`: Selection to Nearest Marker
     */
    type?: H.In<"CFRA" | "NEAREST_FRAME" | "NEAREST_SECOND" | "NEAREST_MARKER">;
  }>;
  /**
   * Add a strip for controlling when speaker plays its sound clip
   *
   * bpy.ops.nla.soundclip_add
   */
  soundclip_add: H.Operator<{}>;
  /**
   * Split selected strips at their midpoints
   *
   * bpy.ops.nla.split
   */
  split: H.Operator<{}>;
  /**
   * Swap order of selected strips within tracks
   *
   * bpy.ops.nla.swap
   */
  swap: H.Operator<{}>;
  /**
   * Add NLA-Tracks above/after the selected tracks
   *
   * bpy.ops.nla.tracks_add
   */
  tracks_add: H.Operator<{
    /** Add a new NLA Track above every existing selected one Default: False. */
    above_selected?: H.In<boolean>;
  }>;
  /**
   * Delete selected NLA-Tracks and the strips they contain
   *
   * bpy.ops.nla.tracks_delete
   */
  tracks_delete: H.Operator<{}>;
  /**
   * Add a transition strip between two adjacent selected strips
   *
   * bpy.ops.nla.transition_add
   */
  transition_add: H.Operator<{}>;
  /**
   * Enter tweaking mode for the action referenced by the active strip to edit its keyframes
   *
   * bpy.ops.nla.tweakmode_enter
   */
  tweakmode_enter: H.Operator<{
    /** Enable 'solo' on the NLA Track containing the active strip, to edit it without seeing the effects of the NLA stack Default: False. */
    isolate_action?: H.In<boolean>;
    /** In tweak mode, display the effects of the tracks above the tweak strip Default: False. */
    use_upper_stack_evaluation?: H.In<boolean>;
  }>;
  /**
   * Exit tweaking mode for the action referenced by the active strip
   *
   * bpy.ops.nla.tweakmode_exit
   */
  tweakmode_exit: H.Operator<{
    /** Disable 'solo' on any of the NLA Tracks after exiting tweak mode to get things back to normal Default: False. */
    isolate_action?: H.In<boolean>;
  }>;
  /**
   * Reset viewable area to show full strips range
   *
   * bpy.ops.nla.view_all
   */
  view_all: H.Operator<{}>;
  /**
   * Move the view to the current frame
   *
   * bpy.ops.nla.view_frame
   */
  view_frame: H.Operator<{}>;
  /**
   * Reset viewable area to show selected strips range
   *
   * bpy.ops.nla.view_selected
   */
  view_selected: H.Operator<{}>;
}