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.

14.7 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.armature */
export interface Ops {
  /**
   * Align selected bones to the active bone (or to their parent)
   *
   * bpy.ops.armature.align
   */
  align: H.Operator<{}>;
  /**
   * Assign all selected bones to a collection, or unassign them, depending on whether the active bone is already assigned or not
   *
   * bpy.ops.armature.assign_to_collection
   */
  assign_to_collection: H.Operator<{
    /** Index of the collection to assign selected bones to. When the operator should create a new bone collection, use new_collection_name to define the collection name, and set this parameter to the parent index of the new bone collection Default: -1. */
    collection_index?: H.In<number>;
    /** Name of a to-be-added bone collection. Only pass this if you want to create a new bone collection and assign the selected bones to it. To assign to an existing collection, do not include this parameter and use collection_index Default: "". */
    new_collection_name?: H.In<string>;
  }>;
  /**
   * Automatically renames the selected bones according to which side of the target axis they fall on
   *
   * bpy.ops.armature.autoside_names
   */
  autoside_names: H.Operator<{
    /**
     * Axis to tag names with Default: 'XAXIS'.
     * - `XAXIS`: X-Axis (Left/Right)
     * - `YAXIS`: Y-Axis (Front/Back)
     * - `ZAXIS`: Z-Axis (Top/Bottom)
     */
    type?: H.In<"XAXIS" | "YAXIS" | "ZAXIS">;
  }>;
  /**
   * Add a new bone located at the 3D cursor
   *
   * bpy.ops.armature.bone_primitive_add
   */
  bone_primitive_add: H.Operator<{
    /** Name of the newly created bone Default: "Bone". */
    name?: H.In<string>;
    /**
     * Co-ordinate system the new bone will be created in Default: 'OBJECT'.
     * - `OBJECT`: Object (The newly created bone will use Object Space co-ordinate system)
     * - `WORLD`: World (The newly created bone will use World Space co-ordinate system)
     */
    space?: H.In<"OBJECT" | "WORLD">;
    /**
     * Initial orientation of the new bone Default: 'UP'.
     * - `UP`: Up (Make the bone visually point upwards so the long axis is aligned with the World/Object positive Z axis (depending on the choice above))
     * - `AXES`: Axes (Align the new bone to match the axes of the World/Object (depending on the choice above))
     * - `3D_CURSOR`: 3D Cursor (Align new bone to match the axes of the 3D cursor)
     * - `3D_VIEW`: Viewport (Align new bone to match the axes of the 3D viewport)
     */
    align?: H.In<"UP" | "AXES" | "3D_CURSOR" | "3D_VIEW">;
    /** Length of the new bone Default: 1.0. */
    length?: H.In<number>;
    /** Enable bone to deform geometry Default: True. */
    use_deform?: H.In<boolean>;
  }>;
  /**
   * Automatically fix alignment of select bones' axes
   *
   * bpy.ops.armature.calculate_roll
   */
  calculate_roll: H.Operator<{
    /** Type Default: 'POS_X'. */
    type?: H.In<E.ArmatureCalculateRollType>;
    /** Negate the alignment axis Default: False. */
    axis_flip?: H.In<boolean>;
    /** Ignore the axis direction, use the shortest rotation to align Default: False. */
    axis_only?: H.In<boolean>;
  }>;
  /**
   * Create a new bone going from the last selected joint to the mouse position
   *
   * bpy.ops.armature.click_extrude
   */
  click_extrude: H.Operator<{}>;
  /**
   * Add a new bone collection
   *
   * bpy.ops.armature.collection_add
   */
  collection_add: H.Operator<{}>;
  /**
   * Add selected bones to the chosen bone collection
   *
   * bpy.ops.armature.collection_assign
   */
  collection_assign: H.Operator<{
    /** Name of the bone collection to assign this bone to; empty to assign to the active bone collection Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Create a new bone collection and assign all selected bones
   *
   * bpy.ops.armature.collection_create_and_assign
   */
  collection_create_and_assign: H.Operator<{
    /** Name of the bone collection to create Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Deselect bones of active Bone Collection
   *
   * bpy.ops.armature.collection_deselect
   */
  collection_deselect: H.Operator<{}>;
  /**
   * Change position of active Bone Collection in list of Bone collections
   *
   * bpy.ops.armature.collection_move
   */
  collection_move: H.Operator<{
    /**
     * Direction to move the active Bone Collection towards Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    direction?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Remove the active bone collection
   *
   * bpy.ops.armature.collection_remove
   */
  collection_remove: H.Operator<{}>;
  /**
   * Remove all bone collections that have neither bones nor children. This is done recursively, so bone collections that only have unused children are also removed
   *
   * bpy.ops.armature.collection_remove_unused
   */
  collection_remove_unused: H.Operator<{}>;
  /**
   * Select bones in active Bone Collection
   *
   * bpy.ops.armature.collection_select
   */
  collection_select: H.Operator<{}>;
  /**
   * Show all bone collections
   *
   * bpy.ops.armature.collection_show_all
   */
  collection_show_all: H.Operator<{}>;
  /**
   * Remove selected bones from the active bone collection
   *
   * bpy.ops.armature.collection_unassign
   */
  collection_unassign: H.Operator<{
    /** Name of the bone collection to unassign this bone from; empty to unassign from the active bone collection Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Unassign the named bone from this bone collection
   *
   * bpy.ops.armature.collection_unassign_named
   */
  collection_unassign_named: H.Operator<{
    /** Name of the bone collection to unassign this bone from; empty to unassign from the active bone collection Default: "". */
    name?: H.In<string>;
    /** Name of the bone to unassign from the collection; empty to use the active bone Default: "". */
    bone_name?: H.In<string>;
  }>;
  /**
   * Clear the 'solo' setting on all bone collections
   *
   * bpy.ops.armature.collection_unsolo_all
   */
  collection_unsolo_all: H.Operator<{}>;
  /**
   * Copy the bone color of the active bone to all selected bones
   *
   * bpy.ops.armature.copy_bone_color_to_selected
   */
  copy_bone_color_to_selected: H.Operator<{
    /**
     * Type Default: 'EDIT'.
     * - `EDIT`: Bone (Copy Bone colors from the active bone to all selected bones)
     * - `POSE`: Pose Bone (Copy Pose Bone colors from the active pose bone to all selected pose bones)
     */
    bone_type?: H.In<"EDIT" | "POSE">;
  }>;
  /**
   * Remove selected bones from the armature
   *
   * bpy.ops.armature.delete
   */
  delete: H.Operator<{
    /** Prompt for confirmation Default: True. */
    confirm?: H.In<boolean>;
  }>;
  /**
   * Dissolve selected bones from the armature
   *
   * bpy.ops.armature.dissolve
   */
  dissolve: H.Operator<{}>;
  /**
   * Make copies of the selected bones within the same armature
   *
   * bpy.ops.armature.duplicate
   */
  duplicate: H.Operator<{
    /** Try to flip names of the bones, if possible, instead of adding a number extension Default: False. */
    do_flip_names?: H.In<boolean>;
  }>;
  /**
   * Make copies of the selected bones within the same armature and move them
   *
   * bpy.ops.armature.duplicate_move
   */
  duplicate_move: H.Operator<{
    /** Make copies of the selected bones within the same armature */
    ARMATURE_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Make copies of the selected bones within the same armature and replace a part of their name
   *
   * bpy.ops.armature.duplicate_rename
   */
  duplicate_rename: H.Operator<{
    /** Try to flip names of the bones, if possible, instead of adding a number extension Default: False. */
    do_flip_names?: H.In<boolean>;
    /** A part of the current bone name that will be replaced Default: "". */
    search?: H.In<string>;
    /** The substitute to be inserted into the place of the given search term. If left empty the search term will be removed Default: "". */
    replace?: H.In<string>;
  }>;
  /**
   * Create new bones from the selected joints
   *
   * bpy.ops.armature.extrude
   */
  extrude: H.Operator<{
    /** Forked Default: False. */
    forked?: H.In<boolean>;
  }>;
  /**
   * Create new bones from the selected joints and move them
   *
   * bpy.ops.armature.extrude_forked
   */
  extrude_forked: H.Operator<{
    /** Create new bones from the selected joints */
    ARMATURE_OT_extrude?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Create new bones from the selected joints and move them
   *
   * bpy.ops.armature.extrude_move
   */
  extrude_move: H.Operator<{
    /** Create new bones from the selected joints */
    ARMATURE_OT_extrude?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Add bone between selected joint(s) and/or 3D cursor
   *
   * bpy.ops.armature.fill
   */
  fill: H.Operator<{}>;
  /**
   * Flips (and corrects) the axis suffixes of the names of selected bones
   *
   * bpy.ops.armature.flip_names
   */
  flip_names: H.Operator<{
    /**
     * Try to remove right-most dot-number from flipped names.
     * Warning: May result in incoherent naming in some cases Default: False.
     */
    do_strip_numbers?: H.In<boolean>;
  }>;
  /**
   * Tag selected bones to not be visible in Edit Mode
   *
   * bpy.ops.armature.hide
   */
  hide: H.Operator<{
    /** Hide unselected rather than selected Default: False. */
    unselected?: H.In<boolean>;
  }>;
  /**
   * Move bones to a collection
   *
   * bpy.ops.armature.move_to_collection
   */
  move_to_collection: H.Operator<{
    /** Index of the collection to move selected bones to. When the operator should create a new bone collection, do not include this parameter and pass new_collection_name Default: -1. */
    collection_index?: H.In<number>;
    /** Name of a to-be-added bone collection. Only pass this if you want to create a new bone collection and move the selected bones to it. To move to an existing collection, do not include this parameter and use collection_index Default: "". */
    new_collection_name?: H.In<string>;
  }>;
  /**
   * Remove the parent-child relationship between selected bones and their parents
   *
   * bpy.ops.armature.parent_clear
   */
  parent_clear: H.Operator<{
    /**
     * What way to clear parenting Default: 'CLEAR'.
     * - `CLEAR`: Clear Parent
     * - `DISCONNECT`: Disconnect Bone
     */
    type?: H.In<"CLEAR" | "DISCONNECT">;
  }>;
  /**
   * Set the active bone as the parent of the selected bones
   *
   * bpy.ops.armature.parent_set
   */
  parent_set: H.Operator<{
    /**
     * Type of parenting Default: 'CONNECTED'.
     * - `CONNECTED`: Connected
     * - `OFFSET`: Keep Offset
     */
    type?: H.In<"CONNECTED" | "OFFSET">;
  }>;
  /**
   * Reveal all bones hidden in Edit Mode
   *
   * bpy.ops.armature.reveal
   */
  reveal: H.Operator<{
    /** Select Default: True. */
    select?: H.In<boolean>;
  }>;
  /**
   * Clear roll for selected bones
   *
   * bpy.ops.armature.roll_clear
   */
  roll_clear: H.Operator<{
    /** Roll Default: 0.0. */
    roll?: H.In<number>;
  }>;
  /**
   * Toggle selection status of all bones
   *
   * bpy.ops.armature.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">;
  }>;
  /**
   * Select immediate parent/children of selected bones
   *
   * bpy.ops.armature.select_hierarchy
   */
  select_hierarchy: H.Operator<{
    /**
     * Direction Default: 'PARENT'.
     * - `PARENT`: Select Parent
     * - `CHILD`: Select Child
     */
    direction?: H.In<"PARENT" | "CHILD">;
    /** Extend the selection Default: False. */
    extend?: H.In<boolean>;
  }>;
  /**
   * Deselect those bones at the boundary of each selection region
   *
   * bpy.ops.armature.select_less
   */
  select_less: H.Operator<{}>;
  /**
   * Select all bones linked by parent/child connections to the current selection
   *
   * bpy.ops.armature.select_linked
   */
  select_linked: H.Operator<{
    /** Follow forks in the parents chain Default: False. */
    all_forks?: H.In<boolean>;
  }>;
  /**
   * (De)select bones linked by parent/child connections under the mouse cursor
   *
   * bpy.ops.armature.select_linked_pick
   */
  select_linked_pick: H.Operator<{
    /** Deselect Default: False. */
    deselect?: H.In<boolean>;
    /** Follow forks in the parents chain Default: False. */
    all_forks?: H.In<boolean>;
  }>;
  /**
   * Mirror the bone selection
   *
   * bpy.ops.armature.select_mirror
   */
  select_mirror: H.Operator<{
    /** Only operate on the active bone Default: False. */
    only_active?: H.In<boolean>;
    /** Extend the selection Default: False. */
    extend?: H.In<boolean>;
  }>;
  /**
   * Select those bones connected to the initial selection
   *
   * bpy.ops.armature.select_more
   */
  select_more: H.Operator<{}>;
  /**
   * Select similar bones by property types
   *
   * bpy.ops.armature.select_similar
   */
  select_similar: H.Operator<{
    /** Type Default: 'LENGTH'. */
    type?: H.In<E.ArmatureSelectSimilarType>;
    /** Threshold Default: 0.1. */
    threshold?: H.In<number>;
  }>;
  /**
   * Isolate selected bones into a separate armature
   *
   * bpy.ops.armature.separate
   */
  separate: H.Operator<{}>;
  /**
   * Select shortest path between two bones
   *
   * bpy.ops.armature.shortest_path_pick
   */
  shortest_path_pick: H.Operator<{}>;
  /**
   * Split off selected bones from connected unselected bones
   *
   * bpy.ops.armature.split
   */
  split: H.Operator<{}>;
  /**
   * Break selected bones into chains of smaller bones
   *
   * bpy.ops.armature.subdivide
   */
  subdivide: H.Operator<{
    /** Number of Cuts Default: 1. */
    number_cuts?: H.In<number>;
  }>;
  /**
   * Change the direction that a chain of bones points in (head and tail swap)
   *
   * bpy.ops.armature.switch_direction
   */
  switch_direction: H.Operator<{}>;
  /**
   * Enforce symmetry, make copies of the selection or use existing
   *
   * bpy.ops.armature.symmetrize
   */
  symmetrize: H.Operator<{
    /**
     * Which sides to copy from and to (when both are selected) Default: 'NEGATIVE_X'.
     * - `NEGATIVE_X`: -X to +X
     * - `POSITIVE_X`: +X to -X
     */
    direction?: H.In<"NEGATIVE_X" | "POSITIVE_X">;
    /** Copy colors to existing bones Default: False. */
    copy_bone_colors?: H.In<boolean>;
  }>;
}