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.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// 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";
import type * as P from "../py";
/**
* This module contains utility functions to handle custom previews.
*
* It behaves as a high-level 'cached' previews manager.
*
* This allows scripts to generate their own previews, and use them as icons in UI widgets
* ('icon_value' for UILayout functions).
*
*
* Custom Icon Example
* -------------------
*
* .. literalinclude:: __/__/__/scripts/templates_py/UI/previews_custom_icon.py
*/
export interface Api {
/** Dictionary-like class of previews. */
readonly ImagePreviewCollection: ImagePreviewCollectionClass;
/** @returns a new preview collection. */
"new"(): H.Ptr<P.bpy_utils_previews.ImagePreviewCollection>;
/**
* Remove the specified previews collection.
* @param pcoll Preview collection to close.
*/
remove(pcoll: P.bpy_utils_previews.ImagePreviewCollection): H.Ref<void>;
/**
* Remove the specified previews collection.
* @param pcoll Preview collection to close.
*/
remove(kw: {
/** Preview collection to close. */
pcoll: P.bpy_utils_previews.ImagePreviewCollection;
}): H.Ref<void>;
}
/**
* Dictionary-like class of previews.
*
* This is a subclass of Python's built-in dict type,
* used to store multiple image previews.
*
* .. note::
*
* - instance with :mod:`bpy.utils.previews.new`
* - keys must be ``str`` type.
* - values will be :class:`bpy.types.ImagePreview`
*
* bpy.utils.previews.ImagePreviewCollection
*/
export interface ImagePreviewCollection {
/**
* Generate a new empty preview.
*
* :raises KeyError: if ``name`` already exists.
* @returns The Preview matching given name, or a new empty one.
* @param name The name (unique id) identifying the preview.
*/
"new"(name: H.In<string>): H.Ptr<R.ImagePreview>;
/**
* Generate a new empty preview.
*
* :raises KeyError: if ``name`` already exists.
* @returns The Preview matching given name, or a new empty one.
* @param name The name (unique id) identifying the preview.
*/
"new"(kw: {
/** The name (unique id) identifying the preview. */
name: H.In<string>;
}): H.Ptr<R.ImagePreview>;
/**
* Generate a new preview from given file path.
*
* :raises KeyError: if ``name`` already exists.
* @returns The Preview matching given name, or a new empty one.
* @param name The name (unique id) identifying the preview.
* @param filepath The file path to generate the preview from.
* @param file_type The type of file, needed to generate the preview.
* @param force_reload If True, force running thumbnail manager even if preview already exists in cache.
*/
load(name: H.In<string>, filepath: H.In<string | H.Bytes>, file_type: H.In<"IMAGE" | "MOVIE" | "BLEND" | "FONT" | "OBJECT_IO">, force_reload?: H.In<boolean>): H.Ptr<R.ImagePreview>;
/**
* Generate a new preview from given file path.
*
* :raises KeyError: if ``name`` already exists.
* @returns The Preview matching given name, or a new empty one.
* @param name The name (unique id) identifying the preview.
* @param filepath The file path to generate the preview from.
* @param file_type The type of file, needed to generate the preview.
* @param force_reload If True, force running thumbnail manager even if preview already exists in cache.
*/
load(name: H.In<string>, filepath: H.In<string | H.Bytes>, file_type: H.In<"IMAGE" | "MOVIE" | "BLEND" | "FONT" | "OBJECT_IO">, kw: {
/** If True, force running thumbnail manager even if preview already exists in cache. */
force_reload?: H.In<boolean>;
}): H.Ptr<R.ImagePreview>;
/**
* Generate a new preview from given file path.
*
* :raises KeyError: if ``name`` already exists.
* @returns The Preview matching given name, or a new empty one.
* @param name The name (unique id) identifying the preview.
* @param filepath The file path to generate the preview from.
* @param file_type The type of file, needed to generate the preview.
* @param force_reload If True, force running thumbnail manager even if preview already exists in cache.
*/
load(kw: {
/** The name (unique id) identifying the preview. */
name: H.In<string>;
/** The file path to generate the preview from. */
filepath: H.In<string | H.Bytes>;
/** The type of file, needed to generate the preview. */
file_type: H.In<"IMAGE" | "MOVIE" | "BLEND" | "FONT" | "OBJECT_IO">;
/** If True, force running thumbnail manager even if preview already exists in cache. */
force_reload?: H.In<boolean>;
}): H.Ptr<R.ImagePreview>;
/** Clear all previews. */
clear(): H.Ref<void>;
/** Close the collection and clear all previews. */
close(): H.Ref<void>;
}
/** The class bpy.utils.previews.ImagePreviewCollection: called, a new one. */
export interface ImagePreviewCollectionClass {
/**
* Dictionary-like class of previews.
*
* This is a subclass of Python's built-in dict type,
* used to store multiple image previews.
*
* .. note::
*
* - instance with :mod:`bpy.utils.previews.new`
* - keys must be ``str`` type.
* - values will be :class:`bpy.types.ImagePreview`
*/
(): H.Own<ImagePreviewCollection>;
}