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";
/** bpy_extras.anim_utils */
export interface Api {
readonly ActionChannelbag: ActionChannelbagClass;
/** Auto-keying support. */
readonly AutoKeying: AutoKeyingClass;
/** BakeOptions(only_selected: bool, do_pose: bool, do_object: bool, do_visual_keying: bool, do_constraint_clear: bool, do_parents_clear: bool, do_clean: bool, do_location: bool, do_rotation: bool, do_scale: bool, do_bbone: bool, do_custom_props: bool) */
readonly BakeOptions: BakeOptionsClass;
/** A buffer for keyframe Co unpacked values per ``FCurveKey``. ``FCurveKeys`` are added using */
readonly KeyframesCo: KeyframesCoClass;
readonly PoseBone: PoseBoneClass;
/**
* Ensure a layer and a keyframe strip exists, then ensure that strip has a channelbag for the slot.
* @returns The channelbag for *slot* in the first keyframe strip.
* @param action Action to populate.
* @param slot Slot to ensure a channelbag for.
*/
action_ensure_channelbag_for_slot(action: R.Action, slot: R.ActionSlot): H.Ptr<R.ActionChannelbag>;
/**
* Ensure a layer and a keyframe strip exists, then ensure that strip has a channelbag for the slot.
* @returns The channelbag for *slot* in the first keyframe strip.
* @param action Action to populate.
* @param slot Slot to ensure a channelbag for.
*/
action_ensure_channelbag_for_slot(kw: {
/** Action to populate. */
action: R.Action;
/** Slot to ensure a channelbag for. */
slot: R.ActionSlot;
}): H.Ptr<R.ActionChannelbag>;
/**
* Returns the first channelbag found for the slot.
* In case there are multiple layers or strips they are iterated until a
* channelbag for that slot is found. In case no matching channelbag is found, returns None.
* @returns The first matching channelbag, or None when not found or when *action* or *slot* is None.
* @param action Action to search.
* @param slot Slot to look up.
*/
action_get_channelbag_for_slot(action: R.Action | null, slot: R.ActionSlot | null): H.Ptr<R.ActionChannelbag>;
/**
* Returns the first channelbag found for the slot.
* In case there are multiple layers or strips they are iterated until a
* channelbag for that slot is found. In case no matching channelbag is found, returns None.
* @returns The first matching channelbag, or None when not found or when *action* or *slot* is None.
* @param action Action to search.
* @param slot Slot to look up.
*/
action_get_channelbag_for_slot(kw: {
/** Action to search. */
action: R.Action | null;
/** Slot to look up. */
slot: R.ActionSlot | null;
}): H.Ptr<R.ActionChannelbag>;
/**
* Return the first Slot of the given Action that's suitable for the given ID type.
*
* Typically you should not need this function; when an Action is assigned to a
* data-block, just use the slot that was assigned along with it.
* @returns The first suitable slot, or None when none match or when *action* is None.
* @param action Action to search.
* @param target_id_type ID type identifier the slot must accept (e.g. ``'OBJECT'``).
*/
action_get_first_suitable_slot(action: R.Action | null, target_id_type: H.In<string>): H.Ptr<R.ActionSlot>;
/**
* Return the first Slot of the given Action that's suitable for the given ID type.
*
* Typically you should not need this function; when an Action is assigned to a
* data-block, just use the slot that was assigned along with it.
* @returns The first suitable slot, or None when none match or when *action* is None.
* @param action Action to search.
* @param target_id_type ID type identifier the slot must accept (e.g. ``'OBJECT'``).
*/
action_get_first_suitable_slot(kw: {
/** Action to search. */
action: R.Action | null;
/** ID type identifier the slot must accept (e.g. ``'OBJECT'``). */
target_id_type: H.In<string>;
}): H.Ptr<R.ActionSlot>;
/**
* Return the first channelbag used in the given *anim_data* or None if there is no Action + Slot combination defined.
* @returns The first channelbag for the assigned slot, or None.
* @param anim_data Animation data to inspect.
*/
animdata_get_channelbag_for_assigned_slot(anim_data: R.AnimData | null): H.Ptr<R.ActionChannelbag>;
/**
* Return the first channelbag used in the given *anim_data* or None if there is no Action + Slot combination defined.
* @returns The first channelbag for the assigned slot, or None.
* @param anim_data Animation data to inspect.
*/
animdata_get_channelbag_for_assigned_slot(kw: {
/** Animation data to inspect. */
anim_data: R.AnimData | null;
}): H.Ptr<R.ActionChannelbag>;
/**
* @returns Action or None.
* @param obj Object to bake.
*/
bake_action(obj: R.Object, kw?: {
/**
* An action to bake the data into, or None for a new action
* to be created.
*/
action?: R.Action | null;
/** Frames to bake. */
frames?: H.In<readonly number[]>;
/** Options for baking. */
bake_options?: P.bpy_extras_anim_utils.BakeOptions;
}): H.Ptr<R.Action>;
/**
* @returns Action or None.
* @param obj Object to bake.
*/
bake_action(kw: {
/** Object to bake. */
obj: R.Object;
/**
* An action to bake the data into, or None for a new action
* to be created.
*/
action: R.Action | null;
/** Frames to bake. */
frames: H.In<readonly number[]>;
/** Options for baking. */
bake_options: P.bpy_extras_anim_utils.BakeOptions;
}): H.Ptr<R.Action>;
/**
* A coroutine that bakes action for a single object.
* @returns an action or None
* @param obj Object to bake.
*/
bake_action_iter(obj: R.Object, kw?: {
/**
* An action to bake the data into, or None for a new action
* to be created.
*/
action?: R.Action | null;
/** Options for baking. */
bake_options?: P.bpy_extras_anim_utils.BakeOptions;
}): H.Ptr<R.Action>;
/**
* A coroutine that bakes action for a single object.
* @returns an action or None
* @param obj Object to bake.
*/
bake_action_iter(kw: {
/** Object to bake. */
obj: R.Object;
/**
* An action to bake the data into, or None for a new action
* to be created.
*/
action: R.Action | null;
/** Options for baking. */
bake_options: P.bpy_extras_anim_utils.BakeOptions;
}): H.Ptr<R.Action>;
/**
* A version of :func:`bake_action_objects_iter` that takes frames and returns the output.
* @returns A sequence of Action or None types (aligned with ``object_action_pairs``)
* @param object_action_pairs Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.
*/
bake_action_objects(object_action_pairs: H.In<readonly (readonly [R.Object, R.Action | null])[]>, kw?: {
/** Frames to bake. */
frames?: H.In<readonly number[]>;
/** Options for baking. */
bake_options?: P.bpy_extras_anim_utils.BakeOptions;
}): H.Seq<R.Action>;
/**
* A version of :func:`bake_action_objects_iter` that takes frames and returns the output.
* @returns A sequence of Action or None types (aligned with ``object_action_pairs``)
* @param object_action_pairs Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.
*/
bake_action_objects(kw: {
/**
* Sequence of object action tuples,
* action is the destination for the baked data. When None a new action will be created.
*/
object_action_pairs: H.In<readonly (readonly [R.Object, R.Action | null])[]>;
/** Frames to bake. */
frames: H.In<readonly number[]>;
/** Options for baking. */
bake_options: P.bpy_extras_anim_utils.BakeOptions;
}): H.Seq<R.Action>;
/**
* A coroutine that bakes actions for multiple objects.
* @returns A generator that yields None for each frame, then finally
* yields a tuple of actions (aligned with *object_action_pairs*).
* @param object_action_pairs Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.
* @param bake_options Options for baking.
*/
bake_action_objects_iter(object_action_pairs: H.In<readonly (readonly [R.Object, R.Action | null])[]>, bake_options: P.bpy_extras_anim_utils.BakeOptions): H.Ref<any[]>;
/**
* A coroutine that bakes actions for multiple objects.
* @returns A generator that yields None for each frame, then finally
* yields a tuple of actions (aligned with *object_action_pairs*).
* @param object_action_pairs Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.
* @param bake_options Options for baking.
*/
bake_action_objects_iter(kw: {
/**
* Sequence of object action tuples,
* action is the destination for the baked data. When None a new action will be created.
*/
object_action_pairs: H.In<readonly (readonly [R.Object, R.Action | null])[]>;
/** Options for baking. */
bake_options: P.bpy_extras_anim_utils.BakeOptions;
}): H.Ref<any[]>;
rna_idprop_value_to_python(value: any): any;
rna_idprop_value_to_python(kw: { value: any }): any;
}
/** bpy_extras.anim_utils.ActionChannelbag */
export interface ActionChannelbag {
}
/** The class bpy_extras.anim_utils.ActionChannelbag: called, a new one. */
export interface ActionChannelbagClass {
(...args: any[]): H.Own<ActionChannelbag>;
/** = <bpy_struct, Struct("ActionChannelbag")> */
readonly bl_rna: H.Ref<any>;
}
/**
* Auto-keying support.
*
* bpy_extras.anim_utils.AutoKeying
*/
export interface AutoKeying {
}
/** The class bpy_extras.anim_utils.AutoKeying: called, a new one. */
export interface AutoKeyingClass {
/** Auto-keying support. */
(): H.Own<AutoKeying>;
/**
* Context manager to set the key type that's inserted.
* @returns A context manager that resets the key type on exit.
* @param the_keytype The key type to use.
*/
keytype(the_keytype: H.In<string>): H.Ref<null[]>;
/**
* Context manager to set the key type that's inserted.
* @returns A context manager that resets the key type on exit.
* @param the_keytype The key type to use.
*/
keytype(kw: {
/** The key type to use. */
the_keytype: H.In<string>;
}): H.Ref<null[]>;
/**
* Context manager to set various keyframing options.
* @returns A context manager that resets the options on exit.
*/
options(kw?: {
/** The key type to use. */
keytype?: H.In<string>;
/** Key location channels. */
use_loc?: H.In<boolean>;
/** Key rotation channels. */
use_rot?: H.In<boolean>;
/** Key scale channels. */
use_scale?: H.In<boolean>;
/** Allow use without the user activating auto-keying. */
force_autokey?: H.In<boolean>;
}): H.Ref<null[]>;
/**
* Retrieve the general keyframing options from user preferences.
* @returns The keyframing option flags.
* @param context The context.
*/
keying_options(context: R.Context): H.Ref<Set<string>>;
/**
* Retrieve the general keyframing options from user preferences.
* @returns The keyframing option flags.
* @param context The context.
*/
keying_options(kw: {
/** The context. */
context: R.Context;
}): H.Ref<Set<string>>;
/**
* Retrieve the general keyframing options from user preferences.
* @returns The keyframing option flags.
* @param context The context.
* @param keyingset The keying set to read options from.
*/
keying_options_from_keyingset(context: R.Context, keyingset: R.KeyingSet): H.Ref<Set<string>>;
/**
* Retrieve the general keyframing options from user preferences.
* @returns The keyframing option flags.
* @param context The context.
* @param keyingset The keying set to read options from.
*/
keying_options_from_keyingset(kw: {
/** The context. */
context: R.Context;
/** The keying set to read options from. */
keyingset: R.KeyingSet;
}): H.Ref<Set<string>>;
/**
* Retrieve the Auto Keyframe options, or None if disabled.
* @returns The keyframing option flags, or None when auto-keying is disabled.
* @param context The context.
*/
autokeying_options(context: R.Context): H.Ref<Set<string> | null>;
/**
* Retrieve the Auto Keyframe options, or None if disabled.
* @returns The keyframing option flags, or None when auto-keying is disabled.
* @param context The context.
*/
autokeying_options(kw: {
/** The context. */
context: R.Context;
}): H.Ref<Set<string> | null>;
/**
* Retrieve the lock status for 4D rotation.
* @returns Lock status for W, X, Y, Z rotation channels.
* @param bone The pose bone to check.
*/
get_4d_rotlock(bone: R.PoseBone): H.Ref<boolean[]>;
/**
* Retrieve the lock status for 4D rotation.
* @returns Lock status for W, X, Y, Z rotation channels.
* @param bone The pose bone to check.
*/
get_4d_rotlock(kw: {
/** The pose bone to check. */
bone: R.PoseBone;
}): H.Ref<boolean[]>;
/**
* Keyframe channels, avoiding keying locked channels.
* @param target The object or pose bone to keyframe.
* @param options Keyframing options.
* @param data_path The data path to keyframe.
* @param group The group name for the keyframes.
* @param locks Per-channel lock status.
*/
keyframe_channels(target: R.Object | R.PoseBone, options: H.In<Set<string>>, data_path: H.In<string>, group: H.In<string>, locks: H.In<readonly boolean[]>): H.Ref<void>;
/**
* Keyframe channels, avoiding keying locked channels.
* @param target The object or pose bone to keyframe.
* @param options Keyframing options.
* @param data_path The data path to keyframe.
* @param group The group name for the keyframes.
* @param locks Per-channel lock status.
*/
keyframe_channels(kw: {
/** The object or pose bone to keyframe. */
target: R.Object | R.PoseBone;
/** Keyframing options. */
options: H.In<Set<string>>;
/** The data path to keyframe. */
data_path: H.In<string>;
/** The group name for the keyframes. */
group: H.In<string>;
/** Per-channel lock status. */
locks: H.In<readonly boolean[]>;
}): H.Ref<void>;
/**
* Keyframe transformation properties, avoiding keying locked channels.
* @param target The object or pose bone to keyframe.
* @param options Keyframing options.
*/
key_transformation(target: R.Object | R.PoseBone, options: H.In<Set<string>>): H.Ref<void>;
/**
* Keyframe transformation properties, avoiding keying locked channels.
* @param target The object or pose bone to keyframe.
* @param options Keyframing options.
*/
key_transformation(kw: {
/** The object or pose bone to keyframe. */
target: R.Object | R.PoseBone;
/** Keyframing options. */
options: H.In<Set<string>>;
}): H.Ref<void>;
/**
* Auto-key transformation properties with the given keying set.
* @param context The context.
* @param target The object or pose bone to keyframe.
* @param keyingset The keying set to use.
*/
key_transformation_via_keyingset(context: R.Context, target: R.Object | R.PoseBone, keyingset: R.KeyingSet): H.Ref<void>;
/**
* Auto-key transformation properties with the given keying set.
* @param context The context.
* @param target The object or pose bone to keyframe.
* @param keyingset The keying set to use.
*/
key_transformation_via_keyingset(kw: {
/** The context. */
context: R.Context;
/** The object or pose bone to keyframe. */
target: R.Object | R.PoseBone;
/** The keying set to use. */
keyingset: R.KeyingSet;
}): H.Ref<void>;
/**
* Return the active keying set, if it should be used.
*
* Only returns the active keying set when the auto-key settings indicate
* it should be used, and when it is not using absolute paths (because
* that's not supported by the Copy Global Transform add-on).
* @returns The active keying set, or None when it should not be used.
* @param context The context.
*/
active_keyingset(context: R.Context): H.Ptr<R.KeyingSet>;
/**
* Return the active keying set, if it should be used.
*
* Only returns the active keying set when the auto-key settings indicate
* it should be used, and when it is not using absolute paths (because
* that's not supported by the Copy Global Transform add-on).
* @returns The active keying set, or None when it should not be used.
* @param context The context.
*/
active_keyingset(kw: {
/** The context. */
context: R.Context;
}): H.Ptr<R.KeyingSet>;
/**
* Auto-key transformation properties.
* @param context The context.
* @param target The object or pose bone to keyframe.
*/
autokey_transformation(context: R.Context, target: R.Object | R.PoseBone): H.Ref<void>;
/**
* Auto-key transformation properties.
* @param context The context.
* @param target The object or pose bone to keyframe.
*/
autokey_transformation(kw: {
/** The context. */
context: R.Context;
/** The object or pose bone to keyframe. */
target: R.Object | R.PoseBone;
}): H.Ref<void>;
}
/**
* BakeOptions(only_selected: bool, do_pose: bool, do_object: bool, do_visual_keying: bool, do_constraint_clear: bool, do_parents_clear: bool, do_clean: bool, do_location: bool, do_rotation: bool, do_scale: bool, do_bbone: bool, do_custom_props: bool)
*
* bpy_extras.anim_utils.BakeOptions
*/
export interface BakeOptions {
}
/** The class bpy_extras.anim_utils.BakeOptions: called, a new one. */
export interface BakeOptionsClass {
/** BakeOptions(only_selected: bool, do_pose: bool, do_object: bool, do_visual_keying: bool, do_constraint_clear: bool, do_parents_clear: bool, do_clean: bool, do_location: bool, do_rotation: bool, do_scale: bool, do_bbone: bool, do_custom_props: bool) */
(only_selected: any, do_pose: any, do_object: any, do_visual_keying: any, do_constraint_clear: any, do_parents_clear: any, do_clean: any, do_location: any, do_rotation: any, do_scale: any, do_bbone: any, do_custom_props: any): H.Own<BakeOptions>;
/** BakeOptions(only_selected: bool, do_pose: bool, do_object: bool, do_visual_keying: bool, do_constraint_clear: bool, do_parents_clear: bool, do_clean: bool, do_location: bool, do_rotation: bool, do_scale: bool, do_bbone: bool, do_custom_props: bool) */
(kw: {
only_selected: any;
do_pose: any;
do_object: any;
do_visual_keying: any;
do_constraint_clear: any;
do_parents_clear: any;
do_clean: any;
do_location: any;
do_rotation: any;
do_scale: any;
do_bbone: any;
do_custom_props: any;
}): H.Own<BakeOptions>;
}
/**
* A buffer for keyframe Co unpacked values per ``FCurveKey``. ``FCurveKeys`` are added using
* ``add_paths()``, Co values stored using extend_co_values(), then finally use
* ``insert_keyframes_into_*_action()`` for efficiently inserting keys into the F-curves.
*
* Users are limited to one Action Group per instance.
*
* bpy_extras.anim_utils.KeyframesCo
*/
export interface KeyframesCo {
add_paths(rna_path: any, total_indices: any): H.Ref<void>;
add_paths(kw: { rna_path: any; total_indices: any }): H.Ref<void>;
extend_co_values(rna_path: any, total_indices: any, frame: any, values: any): H.Ref<void>;
extend_co_values(kw: {
rna_path: any;
total_indices: any;
frame: any;
values: any;
}): H.Ref<void>;
extend_co_value(rna_path: any, frame: any, value: any): H.Ref<void>;
extend_co_value(kw: { rna_path: any; frame: any; value: any }): H.Ref<void>;
/**
* Assumes the action is new, that it has no F-curves. Otherwise, the only difference between versions is
* performance and implementation simplicity.
* @param group_name Name of the Group that F-curves are added to.
*/
insert_keyframes_into_new_action(total_new_keys: any, channelbag: any, group_name: any): H.Ref<void>;
/**
* Assumes the action is new, that it has no F-curves. Otherwise, the only difference between versions is
* performance and implementation simplicity.
* @param group_name Name of the Group that F-curves are added to.
*/
insert_keyframes_into_new_action(kw: {
total_new_keys: any;
channelbag: any;
/** Name of the Group that F-curves are added to. */
group_name: any;
}): H.Ref<void>;
/**
* Assumes the action already exists, that it might already have F-curves. Otherwise, the
* only difference between versions is performance and implementation simplicity.
* @param lookup_fcurves : This is only used for efficiency. It's a substitute for ``channelbag.fcurves.find()`` which is a potentially expensive linear search.
*/
insert_keyframes_into_existing_action(lookup_fcurves: any, total_new_keys: any, channelbag: any): H.Ref<void>;
/**
* Assumes the action already exists, that it might already have F-curves. Otherwise, the
* only difference between versions is performance and implementation simplicity.
* @param lookup_fcurves : This is only used for efficiency. It's a substitute for ``channelbag.fcurves.find()`` which is a potentially expensive linear search.
*/
insert_keyframes_into_existing_action(kw: {
/**
* : This is only used for efficiency.
* It's a substitute for ``channelbag.fcurves.find()`` which is a potentially expensive linear search.
*/
lookup_fcurves: any;
total_new_keys: any;
channelbag: any;
}): H.Ref<void>;
get keyframes_from_fcurve(): any;
set keyframes_from_fcurve(v: any);
}
/** The class bpy_extras.anim_utils.KeyframesCo: called, a new one. */
export interface KeyframesCoClass {
/**
* A buffer for keyframe Co unpacked values per ``FCurveKey``. ``FCurveKeys`` are added using
* ``add_paths()``, Co values stored using extend_co_values(), then finally use
* ``insert_keyframes_into_*_action()`` for efficiently inserting keys into the F-curves.
*
* Users are limited to one Action Group per instance.
*/
(): H.Own<KeyframesCo>;
}
/** bpy_extras.anim_utils.PoseBone */
export interface PoseBone {
get children(): H.Ref<any[]>;
}
/** The class bpy_extras.anim_utils.PoseBone: called, a new one. */
export interface PoseBoneClass {
(...args: any[]): H.Own<PoseBone>;
/** = <bpy_struct, Struct("PoseBone")> */
readonly bl_rna: H.Ref<any>;
}