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";
/** What every Blender struct (bpy.types.bpy_struct) has. */
export interface bpy_struct {
/** Custom properties: Python's ob["key"] (read, set, delete). */
readonly $: { [key: string]: any };
/** The struct's RNA definition. */
readonly bl_rna: H.Own<R.Struct>;
readonly rna_type: H.Own<R.Struct>;
/**
* Returns the keys of this objects custom properties (matches Python's
* dictionary function of the same name).
*
* .. note::
*
* Limited to: :ref:`bpy_types-custom_properties`.
* @returns custom property keys.
*/
keys(...args: any[]): H.Ref<string[]>;
/**
* Returns the values of this objects custom properties (matches Python's
* dictionary function of the same name).
*
* .. note::
*
* Limited to: :ref:`bpy_types-custom_properties`.
* @returns custom property values.
*/
values(...args: any[]): H.Ref<any[]>;
/**
* Returns the items of this objects custom properties (matches Python's
* dictionary function of the same name).
*
* .. note::
*
* Limited to: :ref:`bpy_types-custom_properties`.
* @returns custom property key, value pairs.
*/
items(...args: any[]): H.Ref<[string, any][]>;
/**
* Returns the value of the custom property assigned to key or default
* when not found (matches Python's dictionary function of the same name).
*
* .. note::
*
* Limited to: :ref:`bpy_types-custom_properties`.
* @returns Custom property value or default.
* @param key The key associated with the custom property.
* @param default_ Optional argument for the value to return if *key* is not found.
*/
get(key: H.In<string>, default_?: any): any;
/**
* Remove and return the value of the custom property assigned to key or default
* when not found (matches Python's dictionary function of the same name).
*
* .. note::
*
* Limited to: :ref:`bpy_types-custom_properties`.
* @returns Custom property value or default.
* @param key The key associated with the custom property.
* @param default_ Optional argument for the value to return if *key* is not found.
*/
pop(key: H.In<string>, default_?: any): any;
/**
* Returns the memory address which holds a pointer to Blender's internal data
*
* .. note:: This is intended only for advanced script writers who need to
* pass blender data to their own C/Python modules.
* @returns int (memory address).
*/
as_pointer(...args: any[]): H.Ref<number>;
/**
* Insert a keyframe on the property given, adding fcurves and animation data when necessary.
* @returns Success of keyframe insertion.
* @param data_path path to the property to key, analogous to the fcurve's data path.
*/
keyframe_insert(data_path: H.In<string>, kw?: {
/**
* array index of the property to key.
* Defaults to -1 which will key all indices or a single channel if the property is not an array.
*/
index?: H.In<number>;
/** The frame on which the keyframe is inserted. None (the default) uses ``bpy.context.scene.frame_current``. */
frame?: H.In<number | null>;
/** The name of the group the F-Curve should be added to if it doesn't exist yet. */
group?: H.In<string>;
/**
* Optional set of flags:
* - ``INSERTKEY_NEEDED`` Only insert keyframes where they're needed in the relevant F-Curves.
* - ``INSERTKEY_VISUAL`` Insert keyframes based on 'visual transforms'.
* - ``INSERTKEY_REPLACE`` Only replace already existing keyframes.
* - ``INSERTKEY_AVAILABLE`` Only insert into already existing F-Curves.
* - ``INSERTKEY_CYCLE_AWARE`` Take cyclic extrapolation into account (Cycle-Aware Keying option).
*/
options?: H.In<Set<"INSERTKEY_NEEDED" | "INSERTKEY_VISUAL" | "INSERTKEY_REPLACE" | "INSERTKEY_AVAILABLE" | "INSERTKEY_CYCLE_AWARE">>;
/** Type of the key. */
keytype?: H.In<"KEYFRAME" | "BREAKDOWN" | "MOVING_HOLD" | "EXTREME" | "JITTER" | "GENERATED">;
}): H.Ref<boolean>;
/**
* Insert a keyframe on the property given, adding fcurves and animation data when necessary.
* @returns Success of keyframe insertion.
* @param data_path path to the property to key, analogous to the fcurve's data path.
*/
keyframe_insert(kw: {
/** path to the property to key, analogous to the fcurve's data path. */
data_path: H.In<string>;
/**
* array index of the property to key.
* Defaults to -1 which will key all indices or a single channel if the property is not an array.
*/
index?: H.In<number>;
/** The frame on which the keyframe is inserted. None (the default) uses ``bpy.context.scene.frame_current``. */
frame?: H.In<number | null>;
/** The name of the group the F-Curve should be added to if it doesn't exist yet. */
group?: H.In<string>;
/**
* Optional set of flags:
* - ``INSERTKEY_NEEDED`` Only insert keyframes where they're needed in the relevant F-Curves.
* - ``INSERTKEY_VISUAL`` Insert keyframes based on 'visual transforms'.
* - ``INSERTKEY_REPLACE`` Only replace already existing keyframes.
* - ``INSERTKEY_AVAILABLE`` Only insert into already existing F-Curves.
* - ``INSERTKEY_CYCLE_AWARE`` Take cyclic extrapolation into account (Cycle-Aware Keying option).
*/
options?: H.In<Set<"INSERTKEY_NEEDED" | "INSERTKEY_VISUAL" | "INSERTKEY_REPLACE" | "INSERTKEY_AVAILABLE" | "INSERTKEY_CYCLE_AWARE">>;
/** Type of the key. */
keytype?: H.In<"KEYFRAME" | "BREAKDOWN" | "MOVING_HOLD" | "EXTREME" | "JITTER" | "GENERATED">;
}): H.Ref<boolean>;
/**
* Remove a keyframe from this properties fcurve.
* @returns Success of keyframe deletion.
* @param data_path path to the property to remove a key, analogous to the fcurve's data path.
*/
keyframe_delete(data_path: H.In<string>, kw?: {
/** array index of the property to remove a key. Defaults to -1 removing all indices or a single channel if the property is not an array. */
index?: H.In<number>;
/** The frame on which the keyframe is deleted. None (the default) uses ``bpy.context.scene.frame_current``. */
frame?: H.In<number | null>;
/** The name of the group the F-Curve should be added to if it doesn't exist yet. */
group?: H.In<string>;
}): H.Ref<boolean>;
/**
* Remove a keyframe from this properties fcurve.
* @returns Success of keyframe deletion.
* @param data_path path to the property to remove a key, analogous to the fcurve's data path.
*/
keyframe_delete(kw: {
/** path to the property to remove a key, analogous to the fcurve's data path. */
data_path: H.In<string>;
/** array index of the property to remove a key. Defaults to -1 removing all indices or a single channel if the property is not an array. */
index?: H.In<number>;
/** The frame on which the keyframe is deleted. None (the default) uses ``bpy.context.scene.frame_current``. */
frame?: H.In<number | null>;
/** The name of the group the F-Curve should be added to if it doesn't exist yet. */
group?: H.In<string>;
}): H.Ref<boolean>;
/**
* Adds driver(s) to the given property
* @returns The driver added or a list of drivers when index is -1.
* @param path path to the property to drive, analogous to the fcurve's data path.
* @param index array index of the property drive. Defaults to -1 for all indices or a single channel if the property is not an array.
*/
driver_add(path: H.In<string>, index?: H.In<number>): H.Ref<R.FCurve | R.FCurve[]>;
/**
* Remove driver(s) from the given property
* @returns Success of driver removal.
* @param path path to the property to drive, analogous to the fcurve's data path.
* @param index array index of the property drive. Defaults to -1 for all indices or a single channel if the property is not an array.
*/
driver_remove(path: H.In<string>, index?: H.In<number>): H.Ref<boolean>;
/**
* Check if a property is set, use for testing operator properties.
* @returns True when the property has been set.
* @param property Property name.
*/
is_property_set(property: H.In<string>, kw?: {
/**
* Used for operators that re-run with previous settings.
* In this case the property is not marked as set,
* yet the value from the previous execution is used.
* In rare cases you may want to set this option to false.
*/
ghost?: H.In<boolean>;
}): H.Ref<boolean>;
/**
* Unset a property, will use default value afterward.
* @param property Property name.
*/
property_unset(property: H.In<string>): H.Ref<void>;
/**
* Check if a property is hidden.
* @returns True when the property is hidden.
* @param property Property name.
*/
is_property_hidden(property: H.In<string>): H.Ref<boolean>;
/**
* Check if a property is readonly.
* @returns True when the property is readonly (not writable).
* @param property Property name.
*/
is_property_readonly(property: H.In<string>): H.Ref<boolean>;
/**
* Check if a property is overridable.
* @returns True when the property is overridable.
* @param property Property name.
*/
is_property_overridable_library(property: H.In<string>): H.Ref<boolean>;
/**
* Define a property as overridable or not (only for custom properties!).
* @returns True when the overridable status of the property was successfully set.
* @param property Property name.
* @param overridable Overridable status to set.
*/
property_overridable_library_set(property: H.In<string>, overridable: H.In<boolean>): H.Ref<boolean>;
/**
* Returns the property from the path, raise an exception when not found.
* @returns Property value or property object.
* @param path path which this property resolves.
* @param coerce optional argument, when True, the property will be converted into its Python representation.
*/
path_resolve(path: H.In<string>, coerce?: H.In<boolean>): any;
/**
* Returns the data path from the ID to this object (string).
* @returns The path from :class:`bpy.types.bpy_struct.id_data`
* to this struct and property (when given).
* @param property Optional property name which can be used if the path is to a property of this object.
*/
path_from_id(property?: H.In<string>): H.Ref<string>;
/**
* Returns the full data path to this struct (as a string) from the bpy module.
*
* :raises ValueError:
* if the input data cannot be converted into a full data path.
*
* .. note:: Even if all input data is correct, this function might
* error out because Blender cannot derive a valid path.
* The incomplete path will be printed in the error message.
* @returns The full path to the data.
* @param property Optional property name to get the full path from
* @param index Optional index of the property. "-1" means that the property has no indices.
*/
path_from_module(property?: H.In<string>, index?: H.In<number>): H.Ref<string>;
/**
* Return a new instance, this is needed because types
* such as textures can be changed at runtime.
* @returns a new instance of this object with the type initialized again.
*/
type_recast(...args: any[]): H.Ptr<R.bpy_struct>;
/**
* @returns The class or default when not found.
* @param id The RNA type identifier.
* @param default_ The value to return when not found.
*/
bl_rna_get_subclass_py(id: H.In<string>, default_?: any): any;
/**
* @returns The RNA type or default when not found.
* @param id The RNA type identifier.
* @param default_ The value to return when not found.
*/
bl_rna_get_subclass(id: H.In<string>, default_?: R.Struct | null): H.Ptr<R.Struct>;
/**
* Return the chain of data containing this struct, if known.
* The first item is the root (typically an ID), the last one is the immediate parent.
* May be empty.
* @returns a list of this object's ancestors.
*/
rna_ancestors(...args: any[]): H.Seq<R.bpy_struct>;
/** @returns the parent group for an RNA struct's custom IDProperties. */
id_properties_ensure(...args: any[]): H.Ptr<P.idprop_types.IDPropertyGroup>;
/** Remove the parent group for an RNA struct's custom IDProperties. */
id_properties_clear(...args: any[]): H.Ref<void>;
/**
* @returns An object used to manage an IDProperty's UI data.
* @param key String name of the property.
*/
id_properties_ui(key: H.In<string>): any;
/** The :class:`bpy.types.ID` object this data-block is from or None, (not available for all data types) (readonly) */
get id_data(): H.Ptr<R.ID>;
}
/** bpy.types.wmOwnerID */
export interface wmOwnerID extends R.bpy_struct {
/** Name Default: "". */
get name(): H.Ref<string>;
set name(v: H.In<string>);
}
/** bpy.types.wmOwnerIDs */
export interface wmOwnerIDs {
/**
* Add ui tag
* @param name New name for the tag
*/
"new"(name: H.In<string>): H.Ptr<R.wmOwnerID>;
/**
* Add ui tag
* @param name New name for the tag
*/
"new"(kw: {
/** New name for the tag */
name: H.In<string>;
}): H.Ptr<R.wmOwnerID>;
/**
* Remove ui tag
* @param owner_id Tag to remove
*/
remove(owner_id: R.wmOwnerID): H.Ref<void>;
/**
* Remove ui tag
* @param owner_id Tag to remove
*/
remove(kw: {
/** Tag to remove */
owner_id: R.wmOwnerID;
}): H.Ref<void>;
/** Remove all tags */
clear(): H.Ref<void>;
}
/** bpy.types.wmTools */
export interface wmTools {
/** @param mode Object mode */
from_space_view3d_mode(mode: H.In<E.ContextMode>, create?: H.In<boolean>): H.Ptr<R.WorkSpaceTool>;
/** @param mode Object mode */
from_space_view3d_mode(mode: H.In<E.ContextMode>, kw: { create?: H.In<boolean> }): H.Ptr<R.WorkSpaceTool>;
/** @param mode Object mode */
from_space_view3d_mode(kw: {
/** Object mode */
mode: H.In<E.ContextMode>;
create?: H.In<boolean>;
}): H.Ptr<R.WorkSpaceTool>;
/** @param mode Image space mode - `VIEW`: View (Inspect images or render results) - `UV`: UV Editor (View and edit UVs) - `PAINT`: Paint (Paint images in 2D) - `MASK`: Mask (View and edit masks) */
from_space_image_mode(mode: H.In<"VIEW" | "UV" | "PAINT" | "MASK">, create?: H.In<boolean>): H.Ptr<R.WorkSpaceTool>;
/** @param mode Image space mode - `VIEW`: View (Inspect images or render results) - `UV`: UV Editor (View and edit UVs) - `PAINT`: Paint (Paint images in 2D) - `MASK`: Mask (View and edit masks) */
from_space_image_mode(mode: H.In<"VIEW" | "UV" | "PAINT" | "MASK">, kw: { create?: H.In<boolean> }): H.Ptr<R.WorkSpaceTool>;
/** @param mode Image space mode - `VIEW`: View (Inspect images or render results) - `UV`: UV Editor (View and edit UVs) - `PAINT`: Paint (Paint images in 2D) - `MASK`: Mask (View and edit masks) */
from_space_image_mode(kw: {
/**
* Image space mode
* - `VIEW`: View (Inspect images or render results)
* - `UV`: UV Editor (View and edit UVs)
* - `PAINT`: Paint (Paint images in 2D)
* - `MASK`: Mask (View and edit masks)
*/
mode: H.In<"VIEW" | "UV" | "PAINT" | "MASK">;
create?: H.In<boolean>;
}): H.Ptr<R.WorkSpaceTool>;
from_space_node(create?: H.In<boolean>): H.Ptr<R.WorkSpaceTool>;
from_space_node(kw: { create?: H.In<boolean> }): H.Ptr<R.WorkSpaceTool>;
/** @param mode Sequencer view type - `SEQUENCER`: Sequencer - `PREVIEW`: Preview - `SEQUENCER_PREVIEW`: Sequencer & Preview */
from_space_sequencer(mode: H.In<"SEQUENCER" | "PREVIEW" | "SEQUENCER_PREVIEW">, create?: H.In<boolean>): H.Ptr<R.WorkSpaceTool>;
/** @param mode Sequencer view type - `SEQUENCER`: Sequencer - `PREVIEW`: Preview - `SEQUENCER_PREVIEW`: Sequencer & Preview */
from_space_sequencer(mode: H.In<"SEQUENCER" | "PREVIEW" | "SEQUENCER_PREVIEW">, kw: { create?: H.In<boolean> }): H.Ptr<R.WorkSpaceTool>;
/** @param mode Sequencer view type - `SEQUENCER`: Sequencer - `PREVIEW`: Preview - `SEQUENCER_PREVIEW`: Sequencer & Preview */
from_space_sequencer(kw: {
/**
* Sequencer view type
* - `SEQUENCER`: Sequencer
* - `PREVIEW`: Preview
* - `SEQUENCER_PREVIEW`: Sequencer & Preview
*/
mode: H.In<"SEQUENCER" | "PREVIEW" | "SEQUENCER_PREVIEW">;
create?: H.In<boolean>;
}): H.Ptr<R.WorkSpaceTool>;
}