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.

6.4 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.brush */
export interface Ops {
  /**
   * Activate a brush asset as current sculpt and paint tool
   *
   * bpy.ops.brush.asset_activate
   */
  asset_activate: 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>;
    /** Switch between the current and assigned brushes on consecutive uses. Default: False. */
    use_toggle?: H.In<boolean>;
  }>;
  /**
   * Delete the active brush asset
   *
   * bpy.ops.brush.asset_delete
   */
  asset_delete: H.Operator<{}>;
  /**
   * Edit asset information like the catalog, preview image, tags, or author
   *
   * bpy.ops.brush.asset_edit_metadata
   */
  asset_edit_metadata: H.Operator<{
    /** The asset's catalog path Default: "". */
    catalog_path?: H.In<string>;
    /** Author Default: "". */
    author?: H.In<string>;
    /** Description Default: "". */
    description?: H.In<string>;
  }>;
  /**
   * Choose a preview image for the brush
   *
   * bpy.ops.brush.asset_load_preview
   */
  asset_load_preview: H.Operator<{
    /** Path to file Default: "". */
    filepath?: H.In<string>;
    /** Collapse the region displaying the operator settings Default: True. */
    hide_props_region?: H.In<boolean>;
    /** Check and warn on overwriting existing files Default: False. */
    check_existing?: H.In<boolean>;
    /** Filter .blend files Default: False. */
    filter_blender?: H.In<boolean>;
    /** Filter backup .blend files Default: False. */
    filter_backup?: H.In<boolean>;
    /** Filter image files Default: True. */
    filter_image?: H.In<boolean>;
    /** Filter movie files Default: False. */
    filter_movie?: H.In<boolean>;
    /** Filter Python files Default: False. */
    filter_python?: H.In<boolean>;
    /** Filter font files Default: False. */
    filter_font?: H.In<boolean>;
    /** Filter sound files Default: False. */
    filter_sound?: H.In<boolean>;
    /** Filter text files Default: False. */
    filter_text?: H.In<boolean>;
    /** Filter archive files Default: False. */
    filter_archive?: H.In<boolean>;
    /** Filter btx files Default: False. */
    filter_btx?: H.In<boolean>;
    /** Filter Alembic files Default: False. */
    filter_alembic?: H.In<boolean>;
    /** Filter USD files Default: False. */
    filter_usd?: H.In<boolean>;
    /** Filter OBJ files Default: False. */
    filter_obj?: H.In<boolean>;
    /** Filter OpenVDB volume files Default: False. */
    filter_volume?: H.In<boolean>;
    /** Filter folders Default: True. */
    filter_folder?: H.In<boolean>;
    /** Filter Blender IDs Default: False. */
    filter_blenlib?: H.In<boolean>;
    /** The setting for the file browser mode to load a .blend file, a library or a special file Default: 9. */
    filemode?: H.In<number>;
    /** Enable Multi-View Default: False. */
    show_multiview?: H.In<boolean>;
    /** Use Multi-View Default: False. */
    use_multiview?: H.In<boolean>;
    /**
     * Display Type Default: 'DEFAULT'.
     * - `DEFAULT`: Default (Automatically determine display type for files)
     * - `LIST_VERTICAL`: Short List (Display files as short list)
     * - `LIST_HORIZONTAL`: Long List (Display files as a detailed list)
     * - `THUMBNAIL`: Thumbnails (Display files as thumbnails)
     */
    display_type?: H.In<"DEFAULT" | "LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">;
    /** File sorting mode Default: ''. */
    sort_method?: H.In<string>;
  }>;
  /**
   * Revert the active brush settings to the default values from the asset library
   *
   * bpy.ops.brush.asset_revert
   */
  asset_revert: H.Operator<{}>;
  /**
   * Update the active brush asset in the asset library with current settings
   *
   * bpy.ops.brush.asset_save
   */
  asset_save: H.Operator<{}>;
  /**
   * Save a copy of the active brush asset into the default asset library, and make it the active brush
   *
   * bpy.ops.brush.asset_save_as
   */
  asset_save_as: H.Operator<{
    /** Name for the new brush asset Default: "". */
    name?: H.In<string>;
    /** Asset library used to store the new brush Default: ''. */
    asset_library_reference?: H.In<string>;
    /** Catalog to use for the new asset Default: "". */
    catalog_path?: H.In<string>;
  }>;
  /**
   * Change brush size by a scalar
   *
   * bpy.ops.brush.scale_size
   */
  scale_size: H.Operator<{
    /** Factor to scale brush size by Default: 1.0. */
    scalar?: H.In<number>;
  }>;
  /**
   * Control the stencil brush
   *
   * bpy.ops.brush.stencil_control
   */
  stencil_control: H.Operator<{
    /**
     * Tool Default: 'TRANSLATION'.
     * - `TRANSLATION`: Translation
     * - `SCALE`: Scale
     * - `ROTATION`: Rotation
     */
    mode?: H.In<"TRANSLATION" | "SCALE" | "ROTATION">;
    /**
     * Tool Default: 'PRIMARY'.
     * - `PRIMARY`: Primary
     * - `SECONDARY`: Secondary
     */
    texmode?: H.In<"PRIMARY" | "SECONDARY">;
  }>;
  /**
   * When using an image texture, adjust the stencil size to fit the image aspect ratio
   *
   * bpy.ops.brush.stencil_fit_image_aspect
   */
  stencil_fit_image_aspect: H.Operator<{
    /** Use repeat mapping values Default: True. */
    use_repeat?: H.In<boolean>;
    /** Use texture scale values Default: True. */
    use_scale?: H.In<boolean>;
    /** Modify either the primary or mask stencil Default: False. */
    mask?: H.In<boolean>;
  }>;
  /**
   * Reset the stencil transformation to the default
   *
   * bpy.ops.brush.stencil_reset_transform
   */
  stencil_reset_transform: H.Operator<{
    /** Modify either the primary or mask stencil Default: False. */
    mask?: H.In<boolean>;
  }>;
}