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.

5.0 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.poselib */
export interface Ops {
  /**
   * Apply the given Pose Action to the rig
   *
   * bpy.ops.poselib.apply_pose_asset
   */
  apply_pose_asset: H.Operator<{
    /**
     * Asset Library Type Default: 'LOCAL'.
     * - `ALL`: All Libraries (Show assets from all of the listed asset libraries)
     * - `LOCAL`: Current File (Show the assets currently available in this Blender session)
     * - `ESSENTIALS`: Essentials (Show basic building blocks and utilities coming with Blender)
     * - `ONLINE_ESSENTIALS`: Online Essentials (Show additional building blocks and utilities available online)
     * - `CUSTOM`: Custom (Show assets from the asset libraries configured in the Preferences)
     */
    asset_library_type?: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">;
    /** Asset Library Identifier Default: "". */
    asset_library_identifier?: H.In<string>;
    /** Relative Asset Identifier Default: "". */
    relative_asset_identifier?: H.In<string>;
    /** Amount that the pose is applied on top of the existing poses. A negative value will subtract the pose instead of adding it Default: 1.0. */
    blend_factor?: H.In<number>;
    /** When enabled, applies the pose flipped over the X-axis Default: False. */
    flipped?: H.In<boolean>;
  }>;
  /**
   * Delete the selected Pose Asset
   *
   * bpy.ops.poselib.asset_delete
   */
  asset_delete: H.Operator<{}>;
  /**
   * Update the selected pose asset in the asset library from the currently selected bones. The mode defines how the asset is updated
   *
   * bpy.ops.poselib.asset_modify
   */
  asset_modify: H.Operator<{
    /**
     * Specify which parts of the pose asset are overwritten Default: 'ADJUST'.
     * - `ADJUST`: Adjust (Update existing channels in the pose asset but don't remove or add any channels)
     * - `REPLACE`: Replace with Selection (Completely replace all channels in the pose asset with the current selection)
     * - `ADD`: Add Selected Bones (Add channels of the selection to the pose asset. Existing channels will be updated)
     * - `REMOVE`: Remove Selected Bones (Remove channels of the selection from the pose asset)
     */
    mode?: H.In<"ADJUST" | "REPLACE" | "ADD" | "REMOVE">;
  }>;
  /**
   * Blend the given Pose Action to the rig
   *
   * bpy.ops.poselib.blend_pose_asset
   */
  blend_pose_asset: H.Operator<{
    /**
     * Asset Library Type Default: 'LOCAL'.
     * - `ALL`: All Libraries (Show assets from all of the listed asset libraries)
     * - `LOCAL`: Current File (Show the assets currently available in this Blender session)
     * - `ESSENTIALS`: Essentials (Show basic building blocks and utilities coming with Blender)
     * - `ONLINE_ESSENTIALS`: Online Essentials (Show additional building blocks and utilities available online)
     * - `CUSTOM`: Custom (Show assets from the asset libraries configured in the Preferences)
     */
    asset_library_type?: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">;
    /** Asset Library Identifier Default: "". */
    asset_library_identifier?: H.In<string>;
    /** Relative Asset Identifier Default: "". */
    relative_asset_identifier?: H.In<string>;
    /** Amount that the pose is applied on top of the existing poses. A negative value will subtract the pose instead of adding it Default: 0.0. */
    blend_factor?: H.In<number>;
    /** When enabled, applies the pose flipped over the X-axis Default: False. */
    flipped?: H.In<boolean>;
    /** Always confirm operation when releasing button Default: False. */
    release_confirm?: H.In<boolean>;
  }>;
  /**
   * Create a new pose asset on the clipboard, to be pasted into an Asset Browser
   *
   * bpy.ops.poselib.copy_as_asset
   */
  copy_as_asset: H.Operator<{}>;
  /**
   * Create a new asset from the selected bones in the scene
   *
   * bpy.ops.poselib.create_pose_asset
   */
  create_pose_asset: H.Operator<{
    /** Name for the new pose asset Default: "". */
    pose_name?: H.In<string>;
    /** Asset library used to store the new pose Default: 'LOCAL'. */
    asset_library_reference?: H.In<string>;
    /** Catalog to use for the new asset Default: "". */
    catalog_path?: H.In<string>;
  }>;
  /**
   * Paste the Asset that was previously copied using Copy As Asset
   *
   * bpy.ops.poselib.paste_asset
   */
  paste_asset: H.Operator<{}>;
  /**
   * Select those bones that are used in this pose
   *
   * bpy.ops.poselib.pose_asset_select_bones
   */
  pose_asset_select_bones: H.Operator<{
    /** Select Default: True. */
    select?: H.In<boolean>;
    /** Flipped Default: False. */
    flipped?: H.In<boolean>;
  }>;
  /**
   * Switch back to the previous Action, after creating a pose asset
   *
   * bpy.ops.poselib.restore_previous_action
   */
  restore_previous_action: H.Operator<{}>;
}