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.

8.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.asset */
export interface Ops {
  /**
   * Make the asset available without internet access
   *
   * bpy.ops.asset.asset_download
   */
  asset_download: 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>;
  }>;
  /**
   * Download the selected asset(s)
   *
   * bpy.ops.asset.assets_download
   */
  assets_download: H.Operator<{}>;
  /**
   * Set this pose Action as active Action on the active Object
   *
   * bpy.ops.asset.assign_action
   */
  assign_action: H.Operator<{}>;
  /**
   * Open the system's file browser with the blend file that contains the active asset
   *
   * bpy.ops.asset.browse_containing_blend_file
   */
  browse_containing_blend_file: H.Operator<{}>;
  /**
   * Copy the current .blend file into an Asset Library. Only works on standalone .blend files (i.e. when no other files are referenced)
   *
   * bpy.ops.asset.bundle_install
   */
  bundle_install: H.Operator<{
    /** Default: ''. */
    asset_library_reference?: H.In<string>;
    /** 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: True. */
    check_existing?: H.In<boolean>;
    /** Filter .blend files Default: True. */
    filter_blender?: H.In<boolean>;
    /** Filter backup .blend files Default: False. */
    filter_backup?: H.In<boolean>;
    /** Filter image files Default: False. */
    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: 8. */
    filemode?: H.In<number>;
    /**
     * 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>;
  }>;
  /**
   * Remove an asset catalog from the asset library (contained assets will not be affected and show up as unassigned)
   *
   * bpy.ops.asset.catalog_delete
   */
  catalog_delete: H.Operator<{
    /** ID of the catalog to delete Default: "". */
    catalog_id?: H.In<string>;
  }>;
  /**
   * Create a new catalog to put assets in
   *
   * bpy.ops.asset.catalog_new
   */
  catalog_new: H.Operator<{
    /** Optional path defining the location to put the new catalog under Default: "". */
    parent_path?: H.In<string>;
  }>;
  /**
   * Redo the last undone edit to the asset catalogs
   *
   * bpy.ops.asset.catalog_redo
   */
  catalog_redo: H.Operator<{}>;
  /**
   * Undo the last edit to the asset catalogs
   *
   * bpy.ops.asset.catalog_undo
   */
  catalog_undo: H.Operator<{}>;
  /**
   * Store the current state of the asset catalogs in the undo buffer
   *
   * bpy.ops.asset.catalog_undo_push
   */
  catalog_undo_push: H.Operator<{}>;
  /**
   * Make any edits to any catalogs permanent by writing the current set up to the asset library
   *
   * bpy.ops.asset.catalogs_save
   */
  catalogs_save: H.Operator<{}>;
  /**
   * Delete all asset metadata and turn the selected asset data-blocks back into normal data-blocks
   *
   * bpy.ops.asset.clear
   */
  clear: H.Operator<{
    /** Ensure the data-block is saved, even when it is no longer marked as asset Default: False. */
    set_fake_user?: H.In<boolean>;
  }>;
  /**
   * Delete all asset metadata and turn the asset data-block back into a normal data-block
   *
   * bpy.ops.asset.clear_single
   */
  clear_single: H.Operator<{
    /** Ensure the data-block is saved, even when it is no longer marked as asset Default: False. */
    set_fake_user?: H.In<boolean>;
  }>;
  /**
   * Reread assets and asset catalogs from the asset library on disk
   *
   * bpy.ops.asset.library_refresh
   */
  library_refresh: H.Operator<{
    /** Re-download the asset listing of a remote library. Only supported when the active asset library is remote or has a remote component (the Essentials library) Default: False. */
    use_remote_listing?: H.In<boolean>;
    /** When this operator is invoked and the Shift key is pressed, download the remote asset library listing Default: False. */
    use_shift_for_remote_listing?: H.In<boolean>;
  }>;
  /**
   * Re-download the asset listing of a remote library. Only supported when the active asset library is remote or has a remote component (the Essentials library)
   *
   * bpy.ops.asset.library_reload_listing
   */
  library_reload_listing: H.Operator<{}>;
  /**
   * Enable easier reuse of selected data-blocks through the Asset Browser, with the help of customizable metadata (like previews, descriptions and tags)
   *
   * bpy.ops.asset.mark
   */
  mark: H.Operator<{}>;
  /**
   * Enable easier reuse of a data-block through the Asset Browser, with the help of customizable metadata (like previews, descriptions and tags)
   *
   * bpy.ops.asset.mark_single
   */
  mark_single: H.Operator<{}>;
  /**
   * Open the blend file that contains the active asset
   *
   * bpy.ops.asset.open_containing_blend_file
   */
  open_containing_blend_file: H.Operator<{}>;
  /**
   * Capture a screenshot to use as a preview for the selected asset
   *
   * bpy.ops.asset.screenshot_preview
   */
  screenshot_preview: H.Operator<{
    /** First point of the screenshot in screenspace Default: (0, 0). */
    p1?: H.In<readonly number[]>;
    /** Second point of the screenshot in screenspace Default: (0, 0). */
    p2?: H.In<readonly number[]>;
    /** If enabled, the screenshot will have the same height as width Default: True. */
    force_square?: H.In<boolean>;
  }>;
  /**
   * Add a new keyword tag to the active asset
   *
   * bpy.ops.asset.tag_add
   */
  tag_add: H.Operator<{}>;
  /**
   * Remove an existing keyword tag from the active asset
   *
   * bpy.ops.asset.tag_remove
   */
  tag_remove: H.Operator<{}>;
}