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";
/**
* Object data-block defining an object in a scene
*
* bpy.types.Object
*/
export interface Object extends R.ID {
/** Object data */
get data(): H.Ptr<R.ID>;
set data(v: R.ID | null);
/** Type of object Default: 'EMPTY'. */
get type(): H.Ref<E.ObjectType>;
/** Object interaction mode Default: 'OBJECT'. */
get mode(): H.Ref<E.BlendDataBrushesMode>;
/** Object's bounding box in object-space coordinates, all values are -1.0 when not available Default: ((0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0)). */
get bound_box(): H.Arr2<number>;
/** Parent object */
get parent(): H.Ptr<R.Object>;
set parent(v: R.Object | null);
/**
* Type of parent relation Default: 'OBJECT'.
* - `OBJECT`: Object (The object is parented to an object)
* - `ARMATURE`: Armature
* - `LATTICE`: Lattice (The object is parented to a lattice)
* - `VERTEX`: Vertex (The object is parented to a vertex)
* - `VERTEX_3`: 3 Vertices
* - `BONE`: Bone (The object is parented to a bone)
*/
get parent_type(): H.Ref<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE" | (string & {})>;
set parent_type(v: H.In<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE" | (string & {})>);
/** Indices of vertices in case of a vertex parenting relation Range: 0 to 2147483647. Default: (0, 0, 0). */
get parent_vertices(): H.Arr<number>;
set parent_vertices(v: H.In<readonly number[]>);
/** Name of parent bone in case of a bone parenting relation Default: "". */
get parent_bone(): H.Ref<string>;
set parent_bone(v: H.In<string>);
/** Position along the length of bone Range: 0 to 1. Default: 1.0. */
get parent_bone_head_tail_factor(): H.Ref<number>;
set parent_bone_head_tail_factor(v: H.In<number>);
/** Use the final evaluated indices rather than the original mesh indices Default: False. */
get use_parent_final_indices(): H.Ref<boolean>;
set use_parent_final_indices(v: H.In<boolean>);
/** View Lock 3D viewport camera transformation affects the object's parent instead Default: False. */
get use_camera_lock_parent(): H.Ref<boolean>;
set use_camera_lock_parent(v: H.In<boolean>);
/**
* Axis that points in the 'forward' direction (applies to Instance Vertices when Align to Vertex Normal is enabled) Default: 'POS_X'.
* - `POS_X`: +X
* - `POS_Y`: +Y
* - `POS_Z`: +Z
* - `NEG_X`: -X
* - `NEG_Y`: -Y
* - `NEG_Z`: -Z
*/
get track_axis(): H.Ref<"POS_X" | "POS_Y" | "POS_Z" | "NEG_X" | "NEG_Y" | "NEG_Z">;
set track_axis(v: H.In<"POS_X" | "POS_Y" | "POS_Z" | "NEG_X" | "NEG_Y" | "NEG_Z">);
/**
* Axis that points in the upward direction (applies to Instance Vertices when Align to Vertex Normal is enabled) Default: 'Y'.
* - `X`: X
* - `Y`: Y
* - `Z`: Z
*/
get up_axis(): H.Ref<"X" | "Y" | "Z">;
set up_axis(v: H.In<"X" | "Y" | "Z">);
/** Material slots in the object */
readonly material_slots: H.Own<H.Coll<R.MaterialSlot>>;
/** Active material being displayed */
get active_material(): H.Ptr<R.Material>;
set active_material(v: R.Material | null);
/** Index of active material slot Range: 0 to 2147483647. Default: 0. */
get active_material_index(): H.Ref<number>;
set active_material_index(v: H.In<number>);
/** Location of the object Default: (0.0, 0.0, 0.0). */
get location(): H.Remote<M.Vector>;
set location(v: H.In<M.VectorLike>);
/** Rotation in Quaternions Default: (1.0, 0.0, 0.0, 0.0). */
get rotation_quaternion(): H.Remote<M.Quaternion>;
set rotation_quaternion(v: H.In<M.QuaternionLike>);
/** Angle of Rotation for Axis-Angle rotation representation Default: (0.0, 0.0, 1.0, 0.0). */
get rotation_axis_angle(): H.Arr<number>;
set rotation_axis_angle(v: H.In<readonly number[]>);
/** Rotation in Eulers Default: (0.0, 0.0, 0.0). */
get rotation_euler(): H.Remote<M.Euler>;
set rotation_euler(v: H.In<M.Euler | readonly number[]>);
/** The kind of rotation to apply, values from other rotation modes are not used Default: 'XYZ'. */
get rotation_mode(): H.Ref<E.ObjectRotationMode>;
set rotation_mode(v: H.In<E.ObjectRotationMode>);
/** Scaling of the object Default: (1.0, 1.0, 1.0). */
get scale(): H.Remote<M.Vector>;
set scale(v: H.In<M.VectorLike>);
/**
* Absolute bounding box dimensions of the object.
* Warning: Assigning to it or its members multiple consecutive times will not work correctly, as this needs up-to-date evaluated data Default: (0.0, 0.0, 0.0).
*/
get dimensions(): H.Remote<M.Vector>;
set dimensions(v: H.In<M.VectorLike>);
/** Extra translation added to the location of the object Default: (0.0, 0.0, 0.0). */
get delta_location(): H.Remote<M.Vector>;
set delta_location(v: H.In<M.VectorLike>);
/** Extra rotation added to the rotation of the object (when using Euler rotations) Default: (0.0, 0.0, 0.0). */
get delta_rotation_euler(): H.Remote<M.Euler>;
set delta_rotation_euler(v: H.In<M.Euler | readonly number[]>);
/** Extra rotation added to the rotation of the object (when using Quaternion rotations) Default: (1.0, 0.0, 0.0, 0.0). */
get delta_rotation_quaternion(): H.Remote<M.Quaternion>;
set delta_rotation_quaternion(v: H.In<M.QuaternionLike>);
/** Extra scaling added to the scale of the object Default: (1.0, 1.0, 1.0). */
get delta_scale(): H.Remote<M.Vector>;
set delta_scale(v: H.In<M.VectorLike>);
/** Lock editing of location when transforming Default: (False, False, False). */
get lock_location(): H.Arr<boolean>;
set lock_location(v: H.In<readonly boolean[]>);
/** Lock editing of rotation when transforming Default: (False, False, False). */
get lock_rotation(): H.Arr<boolean>;
set lock_rotation(v: H.In<readonly boolean[]>);
/** Lock editing of 'angle' component of four-component rotations when transforming Default: False. */
get lock_rotation_w(): H.Ref<boolean>;
set lock_rotation_w(v: H.In<boolean>);
/** Lock editing of four component rotations by components (instead of as Eulers) Default: True. */
get lock_rotations_4d(): H.Ref<boolean>;
set lock_rotations_4d(v: H.In<boolean>);
/** Lock editing of scale when transforming Default: (False, False, False). */
get lock_scale(): H.Arr<boolean>;
set lock_scale(v: H.In<readonly boolean[]>);
/** Worldspace transformation matrix Default: ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)). */
get matrix_world(): H.Remote<M.Matrix>;
set matrix_world(v: H.In<M.MatrixLike>);
/**
* Parent relative transformation matrix.
* Warning: Only takes into account object parenting, so e.g. in case of bone parenting you get a matrix relative to the Armature object, not to the actual parent bone Default: ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)).
*/
get matrix_local(): H.Remote<M.Matrix>;
set matrix_local(v: H.In<M.MatrixLike>);
/** Matrix access to location, rotation and scale (including deltas), before constraints and parenting are applied Default: ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)). */
get matrix_basis(): H.Remote<M.Matrix>;
set matrix_basis(v: H.In<M.MatrixLike>);
/** Inverse of object's parent matrix at time of parenting Default: ((1.0, 0.0, 0.0, 0.0), (0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0), (0.0, 0.0, 0.0, 1.0)). */
get matrix_parent_inverse(): H.Remote<M.Matrix>;
set matrix_parent_inverse(v: H.In<M.MatrixLike>);
/** Modifiers affecting the geometric data of the object */
readonly modifiers: H.Own<H.Coll<R.Modifier> & R.ObjectModifiers>;
/** Effects affecting display of object */
readonly shader_effects: H.Own<H.Coll<R.ShaderFx> & R.ObjectShaderFx>;
/** Constraints affecting the transformation of the object */
readonly constraints: H.Own<H.Coll<R.Constraint> & R.ObjectConstraints>;
/** Vertex groups of the object */
readonly vertex_groups: H.Own<H.Coll<R.VertexGroup> & R.VertexGroups>;
/** Viewport display style for empties Default: 'PLAIN_AXES'. */
get empty_display_type(): H.Ref<E.ObjectEmptyDisplayType>;
set empty_display_type(v: H.In<E.ObjectEmptyDisplayType>);
/** Size of display for empties in the viewport Range: 0.00009999999747378752 to 1000. Default: 1.0. */
get empty_display_size(): H.Ref<number>;
set empty_display_size(v: H.In<number>);
/** Origin offset distance Default: (-0.5, -0.5). */
get empty_image_offset(): H.Arr<number>;
set empty_image_offset(v: H.In<readonly number[]>);
/** Parameters defining which layer, pass and frame of the image is displayed */
get image_user(): H.Own<R.ImageUser>;
/**
* Determine which other objects will occlude the image Default: 'DEFAULT'.
* - `DEFAULT`: Default
* - `FRONT`: Front
* - `BACK`: Back
*/
get empty_image_depth(): H.Ref<"DEFAULT" | "FRONT" | "BACK">;
set empty_image_depth(v: H.In<"DEFAULT" | "FRONT" | "BACK">);
/** Display image in perspective mode Default: True. */
get show_empty_image_perspective(): H.Ref<boolean>;
set show_empty_image_perspective(v: H.In<boolean>);
/** Display image in orthographic mode Default: True. */
get show_empty_image_orthographic(): H.Ref<boolean>;
set show_empty_image_orthographic(v: H.In<boolean>);
/** Only display the image when it is aligned with the view axis Default: False. */
get show_empty_image_only_axis_aligned(): H.Ref<boolean>;
set show_empty_image_only_axis_aligned(v: H.In<boolean>);
/** Use alpha blending instead of alpha test (can produce sorting artifacts) Default: False. */
get use_empty_image_alpha(): H.Ref<boolean>;
set use_empty_image_alpha(v: H.In<boolean>);
/**
* Show front/back side Default: 'DOUBLE_SIDED'.
* - `DOUBLE_SIDED`: Both
* - `FRONT`: Front
* - `BACK`: Back
*/
get empty_image_side(): H.Ref<"DOUBLE_SIDED" | "FRONT" | "BACK">;
set empty_image_side(v: H.In<"DOUBLE_SIDED" | "FRONT" | "BACK">);
/** Add a "rest_position" attribute that is a copy of the position attribute before shape keys and modifiers are evaluated Default: False. */
get add_rest_position_attribute(): H.Ref<boolean>;
set add_rest_position_attribute(v: H.In<boolean>);
/** Index number for the "Object Index" render pass Range: 0 to 32767. Default: 0. */
get pass_index(): H.Ref<number>;
set pass_index(v: H.In<number>);
/** Object color and alpha, used when the Object Color mode is enabled Range: 0 to inf. Default: (1.0, 1.0, 1.0, 1.0). */
get color(): H.Arr<number>;
set color(v: H.In<readonly number[]>);
/** Settings for using the object as a field in physics simulation */
get field(): H.Ptr<R.FieldSettings>;
/** Settings for using the object as a collider in physics simulation */
get collision(): H.Ptr<R.CollisionSettings>;
/** Settings for soft body simulation */
get soft_body(): H.Ptr<R.SoftBodySettings>;
/** Particle systems emitted from the object */
readonly particle_systems: H.Own<H.Coll<R.ParticleSystem> & R.ParticleSystems>;
/** Settings for rigid body simulation */
get rigid_body(): H.Ptr<R.RigidBodyObject>;
/** Constraint constraining rigid bodies */
get rigid_body_constraint(): H.Ptr<R.RigidBodyConstraint>;
/** Cache frames during simulation nodes playback Default: True. */
get use_simulation_cache(): H.Ref<boolean>;
set use_simulation_cache(v: H.In<boolean>);
/** Globally disable in viewports Default: False. */
get hide_viewport(): H.Ref<boolean>;
set hide_viewport(v: H.In<boolean>);
/** Disable selection in viewport Default: False. */
get hide_select(): H.Ref<boolean>;
set hide_select(v: H.In<boolean>);
/** Globally disable in renders Default: False. */
get hide_render(): H.Ref<boolean>;
set hide_render(v: H.In<boolean>);
/** Globally disable in volume probes Default: False. */
get hide_probe_volume(): H.Ref<boolean>;
set hide_probe_volume(v: H.In<boolean>);
/** Globally disable in spherical light probes Default: False. */
get hide_probe_sphere(): H.Ref<boolean>;
set hide_probe_sphere(v: H.In<boolean>);
/** Globally disable in planar light probes Default: False. */
get hide_probe_plane(): H.Ref<boolean>;
set hide_probe_plane(v: H.In<boolean>);
/** Disable surface influence during selection, snapping and depth-picking operators. Usually used to avoid semi-transparent objects to affect scene navigation Default: False. */
get hide_surface_pick(): H.Ref<boolean>;
set hide_surface_pick(v: H.In<boolean>);
/** Make instancer visible when rendering Default: True. */
get show_instancer_for_render(): H.Ref<boolean>;
set show_instancer_for_render(v: H.In<boolean>);
/** Make instancer visible in the viewport Default: True. */
get show_instancer_for_viewport(): H.Ref<boolean>;
set show_instancer_for_viewport(v: H.In<boolean>);
/** Object visibility to camera rays Default: True. */
get visible_camera(): H.Ref<boolean>;
set visible_camera(v: H.In<boolean>);
/** Object visibility to diffuse rays Default: True. */
get visible_diffuse(): H.Ref<boolean>;
set visible_diffuse(v: H.In<boolean>);
/** Object visibility to glossy rays Default: True. */
get visible_glossy(): H.Ref<boolean>;
set visible_glossy(v: H.In<boolean>);
/** Object visibility to transmission rays Default: True. */
get visible_transmission(): H.Ref<boolean>;
set visible_transmission(v: H.In<boolean>);
/** Object visibility to volume scattering rays Default: True. */
get visible_volume_scatter(): H.Ref<boolean>;
set visible_volume_scatter(v: H.In<boolean>);
/** Object visibility to shadow rays Default: True. */
get visible_shadow(): H.Ref<boolean>;
set visible_shadow(v: H.In<boolean>);
/** Render objects as a holdout or matte, creating a hole in the image with zero alpha, to fill out in compositing with real footage or another render Default: False. */
get is_holdout(): H.Ref<boolean>;
set is_holdout(v: H.In<boolean>);
/** Only render shadows and reflections on this object, for compositing renders into real footage. Objects with this setting are considered to already exist in the footage, objects without it are synthetic objects being composited into it. Default: False. */
get is_shadow_catcher(): H.Ref<boolean>;
set is_shadow_catcher(v: H.In<boolean>);
/** Object visibility to raycast rays. Implicitly false for Blended materials. Default: True. */
get visible_raycast(): H.Ref<boolean>;
set visible_raycast(v: H.In<boolean>);
/**
* If not None, object instancing method to use Default: 'NONE'.
* - `NONE`: None
* - `VERTS`: Vertices (Instantiate child objects on all vertices)
* - `FACES`: Faces (Instantiate child objects on all faces)
* - `COLLECTION`: Collection (Enable collection instancing)
*/
get instance_type(): H.Ref<"NONE" | "VERTS" | "FACES" | "COLLECTION" | (string & {})>;
set instance_type(v: H.In<"NONE" | "VERTS" | "FACES" | "COLLECTION" | (string & {})>);
/** Rotate instance according to vertex normal Default: False. */
get use_instance_vertices_rotation(): H.Ref<boolean>;
set use_instance_vertices_rotation(v: H.In<boolean>);
/** Scale instance based on face size Default: False. */
get use_instance_faces_scale(): H.Ref<boolean>;
set use_instance_faces_scale(v: H.In<boolean>);
/** Scale the face instance objects Range: 0.0010000000474974513 to 10000. Default: 1.0. */
get instance_faces_scale(): H.Ref<number>;
set instance_faces_scale(v: H.In<number>);
/** Instance an existing collection */
get instance_collection(): H.Ptr<R.Collection>;
set instance_collection(v: R.Collection | null);
/** Default: False. */
get is_instancer(): H.Ref<boolean>;
/**
* How to display object in viewport Default: 'TEXTURED'.
* - `BOUNDS`: Bounds (Display the bounds of the object)
* - `WIRE`: Wire (Display the object as a wireframe)
* - `SOLID`: Solid (Display the object as a solid (if solid drawing is enabled in the viewport))
* - `TEXTURED`: Textured (Display the object with textures (if textures are enabled in the viewport))
*/
get display_type(): H.Ref<"BOUNDS" | "WIRE" | "SOLID" | "TEXTURED">;
set display_type(v: H.In<"BOUNDS" | "WIRE" | "SOLID" | "TEXTURED">);
/** Display the object's bounds Default: False. */
get show_bounds(): H.Ref<boolean>;
set show_bounds(v: H.In<boolean>);
/**
* Object boundary display type Default: 'BOX'.
* - `BOX`: Box (Display bounds as box)
* - `SPHERE`: Sphere (Display bounds as sphere)
* - `CYLINDER`: Cylinder (Display bounds as cylinder)
* - `CONE`: Cone (Display bounds as cone)
* - `CAPSULE`: Capsule (Display bounds as capsule)
*/
get display_bounds_type(): H.Ref<"BOX" | "SPHERE" | "CYLINDER" | "CONE" | "CAPSULE">;
set display_bounds_type(v: H.In<"BOX" | "SPHERE" | "CYLINDER" | "CONE" | "CAPSULE">);
/** Display the object's name Default: False. */
get show_name(): H.Ref<boolean>;
set show_name(v: H.In<boolean>);
/** Display the object's origin and axes Default: False. */
get show_axis(): H.Ref<boolean>;
set show_axis(v: H.In<boolean>);
/** Display the object's texture space Default: False. */
get show_texture_space(): H.Ref<boolean>;
set show_texture_space(v: H.In<boolean>);
/** Display the object's wireframe over solid shading Default: False. */
get show_wire(): H.Ref<boolean>;
set show_wire(v: H.In<boolean>);
/** Display all edges for mesh objects Default: False. */
get show_all_edges(): H.Ref<boolean>;
set show_all_edges(v: H.In<boolean>);
/** Lights affect Grease Pencil object Default: True. */
get use_grease_pencil_lights(): H.Ref<boolean>;
set use_grease_pencil_lights(v: H.In<boolean>);
/** Display material transparency in the object Default: False. */
get show_transparent(): H.Ref<boolean>;
set show_transparent(v: H.In<boolean>);
/** Make the object display in front of others Default: False. */
get show_in_front(): H.Ref<boolean>;
set show_in_front(v: H.In<boolean>);
/** Current pose for armatures */
get pose(): H.Ptr<R.Pose>;
/** Only show the active shape key at full value Default: False. */
get show_only_shape_key(): H.Ref<boolean>;
set show_only_shape_key(v: H.In<boolean>);
/** Display shape keys in edit mode (for meshes only) Default: False. */
get use_shape_key_edit_mode(): H.Ref<boolean>;
set use_shape_key_edit_mode(v: H.In<boolean>);
/** Current shape key */
get active_shape_key(): H.Ptr<R.ShapeKey>;
/** Current shape key index Range: -32768 to 32767. Default: 0. */
get active_shape_key_index(): H.Ref<number>;
set active_shape_key_index(v: H.In<number>);
/** Dynamic Topology Sculpting Default: False. */
get use_dynamic_topology_sculpting(): H.Ref<boolean>;
/** Object comes from a instancer Default: False. */
get is_from_instancer(): H.Ref<boolean>;
/** Object comes from a background set Default: False. */
get is_from_set(): H.Ref<boolean>;
/** Object display settings for 3D viewport */
get display(): H.Own<R.ObjectDisplay>;
/** Line Art settings for the object */
get lineart(): H.Ptr<R.ObjectLineArt>;
/** Enable mesh symmetry in the X axis Default: False. */
get use_mesh_mirror_x(): H.Ref<boolean>;
set use_mesh_mirror_x(v: H.In<boolean>);
/** Enable mesh symmetry in the Y axis Default: False. */
get use_mesh_mirror_y(): H.Ref<boolean>;
set use_mesh_mirror_y(v: H.In<boolean>);
/** Enable mesh symmetry in the Z axis Default: False. */
get use_mesh_mirror_z(): H.Ref<boolean>;
set use_mesh_mirror_z(v: H.In<boolean>);
/** Lightgroup that the object belongs to Default: "". */
get lightgroup(): H.Ref<string>;
set lightgroup(v: H.In<string>);
/** Light linking settings */
get light_linking(): H.Own<R.ObjectLightLinking>;
/** Offset rays from the surface to reduce shadow terminator artifact on low poly geometry. Only affect triangles that are affected by the geometry offset Range: 0 to inf. Default: 0.0. */
get shadow_terminator_normal_offset(): H.Ref<number>;
set shadow_terminator_normal_offset(v: H.In<number>);
/** Offset rays from the surface to reduce shadow terminator artifact on low poly geometry. Only affects triangles at grazing angles to light Range: 0 to inf. Default: 0.1. */
get shadow_terminator_geometry_offset(): H.Ref<number>;
set shadow_terminator_geometry_offset(v: H.In<number>);
/** Push the shadow terminator towards the light to hide artifacts on low poly geometry Range: 0 to inf. Default: 0.0. */
get shadow_terminator_shading_offset(): H.Ref<number>;
set shadow_terminator_shading_offset(v: H.In<number>);
/** Animation data for this data-block */
get animation_data(): H.Ptr<R.AnimData>;
/** Animation data for this data-block */
get animation_visualization(): H.Own<R.AnimViz>;
/** Motion Path for this element */
get motion_path(): H.Ptr<R.MotionPath>;
/** List of groups of bones for easy selection */
readonly selection_sets: H.Own<H.Coll<R.SelectionSet>>;
/** Index of the currently active selection set Range: -2147483648 to 2147483647. Default: 0. */
get active_selection_set(): H.Ref<number>;
set active_selection_set(v: H.In<number>);
/** Cycles object settings */
get cycles(): H.Ptr<R.CyclesObjectSettings>;
/**
* Test if the object is selected. The selection state is per view layer.
* @param view_layer Use this instead of the active view layer
*/
select_get(view_layer?: R.ViewLayer | null): H.Ref<boolean>;
/**
* Test if the object is selected. The selection state is per view layer.
* @param view_layer Use this instead of the active view layer
*/
select_get(kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<boolean>;
/**
* Select or deselect the object. The selection state is per view layer.
* @param state Selection state to define
* @param view_layer Use this instead of the active view layer
*/
select_set(state: H.In<boolean>, view_layer?: R.ViewLayer | null): H.Ref<void>;
/**
* Select or deselect the object. The selection state is per view layer.
* @param state Selection state to define
* @param view_layer Use this instead of the active view layer
*/
select_set(state: H.In<boolean>, kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<void>;
/**
* Select or deselect the object. The selection state is per view layer.
* @param state Selection state to define
* @param view_layer Use this instead of the active view layer
*/
select_set(kw: {
/** Selection state to define */
state: H.In<boolean>;
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<void>;
/**
* Test if the object is hidden for viewport editing. This hiding state is per view layer.
* @param view_layer Use this instead of the active view layer
*/
hide_get(view_layer?: R.ViewLayer | null): H.Ref<boolean>;
/**
* Test if the object is hidden for viewport editing. This hiding state is per view layer.
* @param view_layer Use this instead of the active view layer
*/
hide_get(kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<boolean>;
/**
* Hide the object for viewport editing. This hiding state is per view layer.
* @param state Hide state to define
* @param view_layer Use this instead of the active view layer
*/
hide_set(state: H.In<boolean>, view_layer?: R.ViewLayer | null): H.Ref<void>;
/**
* Hide the object for viewport editing. This hiding state is per view layer.
* @param state Hide state to define
* @param view_layer Use this instead of the active view layer
*/
hide_set(state: H.In<boolean>, kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<void>;
/**
* Hide the object for viewport editing. This hiding state is per view layer.
* @param state Hide state to define
* @param view_layer Use this instead of the active view layer
*/
hide_set(kw: {
/** Hide state to define */
state: H.In<boolean>;
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<void>;
/**
* Test if the object is visible in the 3D viewport, taking into account all visibility settings
* @param view_layer Use this instead of the active view layer
* @param viewport Use this instead of the active 3D viewport
*/
visible_get(view_layer?: R.ViewLayer | null, viewport?: R.SpaceView3D | null): H.Ref<boolean>;
/**
* Test if the object is visible in the 3D viewport, taking into account all visibility settings
* @param view_layer Use this instead of the active view layer
* @param viewport Use this instead of the active 3D viewport
*/
visible_get(kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
/** Use this instead of the active 3D viewport */
viewport?: R.SpaceView3D | null;
}): H.Ref<boolean>;
/**
* Test if object is masked in the view layer
* @param view_layer Use this instead of the active view layer
*/
holdout_get(view_layer?: R.ViewLayer | null): H.Ref<boolean>;
/**
* Test if object is masked in the view layer
* @param view_layer Use this instead of the active view layer
*/
holdout_get(kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<boolean>;
/**
* Test if object is set to contribute only indirectly (through shadows and reflections) in the view layer
* @param view_layer Use this instead of the active view layer
*/
indirect_only_get(view_layer?: R.ViewLayer | null): H.Ref<boolean>;
/**
* Test if object is set to contribute only indirectly (through shadows and reflections) in the view layer
* @param view_layer Use this instead of the active view layer
*/
indirect_only_get(kw: {
/** Use this instead of the active view layer */
view_layer?: R.ViewLayer | null;
}): H.Ref<boolean>;
/**
* Get the local view state for this object
* @param viewport Viewport in local view
*/
local_view_get(viewport: R.SpaceView3D): H.Ref<boolean>;
/**
* Get the local view state for this object
* @param viewport Viewport in local view
*/
local_view_get(kw: {
/** Viewport in local view */
viewport: R.SpaceView3D;
}): H.Ref<boolean>;
/**
* Set the local view state for this object
* @param viewport Viewport in local view
* @param state Local view state to define
*/
local_view_set(viewport: R.SpaceView3D, state: H.In<boolean>): H.Ref<void>;
/**
* Set the local view state for this object
* @param viewport Viewport in local view
* @param state Local view state to define
*/
local_view_set(kw: {
/** Viewport in local view */
viewport: R.SpaceView3D;
/** Local view state to define */
state: H.In<boolean>;
}): H.Ref<void>;
/**
* Check for local view and local collections for this viewport and object
* @param viewport Viewport in local collections
*/
visible_in_viewport_get(viewport: R.SpaceView3D): H.Ref<boolean>;
/**
* Check for local view and local collections for this viewport and object
* @param viewport Viewport in local collections
*/
visible_in_viewport_get(kw: {
/** Viewport in local collections */
viewport: R.SpaceView3D;
}): H.Ref<boolean>;
/**
* Convert (transform) the given matrix from one space to another
* @param pose_bone Bone to use to define spaces (may be None, in which case only the two 'WORLD' and 'LOCAL' spaces are usable)
* @param matrix The matrix to transform
* @param from_space The space in which 'matrix' is currently - `WORLD`: World Space (The most global space in Blender) - `POSE`: Pose Space (The pose space of a bone (its armature's object space)) - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms)) - `LOCAL`: Local Space (The local space of an object/bone)
* @param to_space The space to which you want to transform 'matrix' - `WORLD`: World Space (The most global space in Blender) - `POSE`: Pose Space (The pose space of a bone (its armature's object space)) - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms)) - `LOCAL`: Local Space (The local space of an object/bone)
*/
convert_space(pose_bone?: R.PoseBone | null, matrix?: H.In<M.MatrixLike>, from_space?: H.In<"WORLD" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">, to_space?: H.In<"WORLD" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">): H.Remote<M.Matrix>;
/**
* Convert (transform) the given matrix from one space to another
* @param pose_bone Bone to use to define spaces (may be None, in which case only the two 'WORLD' and 'LOCAL' spaces are usable)
* @param matrix The matrix to transform
* @param from_space The space in which 'matrix' is currently - `WORLD`: World Space (The most global space in Blender) - `POSE`: Pose Space (The pose space of a bone (its armature's object space)) - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms)) - `LOCAL`: Local Space (The local space of an object/bone)
* @param to_space The space to which you want to transform 'matrix' - `WORLD`: World Space (The most global space in Blender) - `POSE`: Pose Space (The pose space of a bone (its armature's object space)) - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms)) - `LOCAL`: Local Space (The local space of an object/bone)
*/
convert_space(kw: {
/** Bone to use to define spaces (may be None, in which case only the two 'WORLD' and 'LOCAL' spaces are usable) */
pose_bone?: R.PoseBone | null;
/** The matrix to transform */
matrix?: H.In<M.MatrixLike>;
/**
* The space in which 'matrix' is currently
* - `WORLD`: World Space (The most global space in Blender)
* - `POSE`: Pose Space (The pose space of a bone (its armature's object space))
* - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms))
* - `LOCAL`: Local Space (The local space of an object/bone)
*/
from_space?: H.In<"WORLD" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">;
/**
* The space to which you want to transform 'matrix'
* - `WORLD`: World Space (The most global space in Blender)
* - `POSE`: Pose Space (The pose space of a bone (its armature's object space))
* - `LOCAL_WITH_PARENT`: Local With Parent (The rest pose local space of a bone (this matrix includes parent transforms))
* - `LOCAL`: Local Space (The local space of an object/bone)
*/
to_space?: H.In<"WORLD" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">;
}): H.Remote<M.Matrix>;
/**
* Generate the camera projection matrix of this object (mostly useful for Camera and Light types)
* @param depsgraph Depsgraph to get evaluated data from
* @param x Width of the render area
* @param y Height of the render area
* @param scale_x Width scaling factor
* @param scale_y Height scaling factor
*/
calc_matrix_camera(depsgraph: R.Depsgraph, x?: H.In<number>, y?: H.In<number>, scale_x?: H.In<number>, scale_y?: H.In<number>): H.Remote<M.Matrix>;
/**
* Generate the camera projection matrix of this object (mostly useful for Camera and Light types)
* @param depsgraph Depsgraph to get evaluated data from
* @param x Width of the render area
* @param y Height of the render area
* @param scale_x Width scaling factor
* @param scale_y Height scaling factor
*/
calc_matrix_camera(depsgraph: R.Depsgraph, kw: {
/** Width of the render area */
x?: H.In<number>;
/** Height of the render area */
y?: H.In<number>;
/** Width scaling factor */
scale_x?: H.In<number>;
/** Height scaling factor */
scale_y?: H.In<number>;
}): H.Remote<M.Matrix>;
/**
* Generate the camera projection matrix of this object (mostly useful for Camera and Light types)
* @param depsgraph Depsgraph to get evaluated data from
* @param x Width of the render area
* @param y Height of the render area
* @param scale_x Width scaling factor
* @param scale_y Height scaling factor
*/
calc_matrix_camera(kw: {
/** Depsgraph to get evaluated data from */
depsgraph: R.Depsgraph;
/** Width of the render area */
x?: H.In<number>;
/** Height of the render area */
y?: H.In<number>;
/** Width scaling factor */
scale_x?: H.In<number>;
/** Height scaling factor */
scale_y?: H.In<number>;
}): H.Remote<M.Matrix>;
/**
* Compute the coordinate (and scale for ortho cameras) given object should be to 'see' all given coordinates
* @param depsgraph Depsgraph to get evaluated data from
* @param coordinates Coordinates to fit in
*/
camera_fit_coords(depsgraph: R.Depsgraph, coordinates: H.In<readonly number[]>): H.Ref<[M.Vector, number]>;
/**
* Compute the coordinate (and scale for ortho cameras) given object should be to 'see' all given coordinates
* @param depsgraph Depsgraph to get evaluated data from
* @param coordinates Coordinates to fit in
*/
camera_fit_coords(kw: {
/** Depsgraph to get evaluated data from */
depsgraph: R.Depsgraph;
/** Coordinates to fit in */
coordinates: H.In<readonly number[]>;
}): H.Ref<[M.Vector, number]>;
/**
* Compute orientation mapping between vertices of an original object and object with shape keys and deforming modifiers applied.The evaluation is to be freed with the crazyspace_eval_free function
* @param depsgraph Evaluated dependency graph
* @param scene Scene of the object
*/
crazyspace_eval(depsgraph: R.Depsgraph, scene: R.Scene): H.Ref<void>;
/**
* Compute orientation mapping between vertices of an original object and object with shape keys and deforming modifiers applied.The evaluation is to be freed with the crazyspace_eval_free function
* @param depsgraph Evaluated dependency graph
* @param scene Scene of the object
*/
crazyspace_eval(kw: {
/** Evaluated dependency graph */
depsgraph: R.Depsgraph;
/** Scene of the object */
scene: R.Scene;
}): H.Ref<void>;
/** Convert displacement vector from non-deformed object space to deformed object space */
crazyspace_displacement_to_deformed(vertex_index?: H.In<number>, displacement?: H.In<M.VectorLike>): H.Remote<M.Vector>;
/** Convert displacement vector from non-deformed object space to deformed object space */
crazyspace_displacement_to_deformed(kw: { vertex_index?: H.In<number>; displacement?: H.In<M.VectorLike> }): H.Remote<M.Vector>;
/** Free evaluated state of crazyspace */
crazyspace_displacement_to_original(vertex_index?: H.In<number>, displacement?: H.In<M.VectorLike>): H.Remote<M.Vector>;
/** Free evaluated state of crazyspace */
crazyspace_displacement_to_original(kw: { vertex_index?: H.In<number>; displacement?: H.In<M.VectorLike> }): H.Remote<M.Vector>;
/** crazyspace_eval_clear */
crazyspace_eval_clear(): H.Ref<void>;
/**
* Create a Mesh data-block from the current state of the object. The object owns the data-block. To force free it use to_mesh_clear(). The result is temporary and cannot be used by objects from the main database.
* @param preserve_all_data_layers Preserve all data layers in the mesh, like UV maps and vertex groups. By default Blender only computes the subset of data layers needed for viewport display and rendering, for better performance.
* @param depsgraph Evaluated dependency graph which is required when preserve_all_data_layers is true
*/
to_mesh(preserve_all_data_layers?: H.In<boolean>, depsgraph?: R.Depsgraph | null): H.Ptr<R.Mesh>;
/**
* Create a Mesh data-block from the current state of the object. The object owns the data-block. To force free it use to_mesh_clear(). The result is temporary and cannot be used by objects from the main database.
* @param preserve_all_data_layers Preserve all data layers in the mesh, like UV maps and vertex groups. By default Blender only computes the subset of data layers needed for viewport display and rendering, for better performance.
* @param depsgraph Evaluated dependency graph which is required when preserve_all_data_layers is true
*/
to_mesh(kw: {
/** Preserve all data layers in the mesh, like UV maps and vertex groups. By default Blender only computes the subset of data layers needed for viewport display and rendering, for better performance. */
preserve_all_data_layers?: H.In<boolean>;
/** Evaluated dependency graph which is required when preserve_all_data_layers is true */
depsgraph?: R.Depsgraph | null;
}): H.Ptr<R.Mesh>;
/** Clears mesh data-block created by to_mesh() */
to_mesh_clear(): H.Ref<void>;
/**
* Create a Curve data-block from the current state of the object. This only works for curve and text objects. The object owns the data-block. To force free it, use to_curve_clear(). The result is temporary and cannot be used by objects from the main database.
* @param depsgraph Evaluated dependency graph
* @param apply_modifiers Apply the deform modifiers on the control points of the curve. This is only supported for curve objects.
*/
to_curve(depsgraph: R.Depsgraph, apply_modifiers?: H.In<boolean>): H.Ptr<R.Curve>;
/**
* Create a Curve data-block from the current state of the object. This only works for curve and text objects. The object owns the data-block. To force free it, use to_curve_clear(). The result is temporary and cannot be used by objects from the main database.
* @param depsgraph Evaluated dependency graph
* @param apply_modifiers Apply the deform modifiers on the control points of the curve. This is only supported for curve objects.
*/
to_curve(depsgraph: R.Depsgraph, kw: {
/** Apply the deform modifiers on the control points of the curve. This is only supported for curve objects. */
apply_modifiers?: H.In<boolean>;
}): H.Ptr<R.Curve>;
/**
* Create a Curve data-block from the current state of the object. This only works for curve and text objects. The object owns the data-block. To force free it, use to_curve_clear(). The result is temporary and cannot be used by objects from the main database.
* @param depsgraph Evaluated dependency graph
* @param apply_modifiers Apply the deform modifiers on the control points of the curve. This is only supported for curve objects.
*/
to_curve(kw: {
/** Evaluated dependency graph */
depsgraph: R.Depsgraph;
/** Apply the deform modifiers on the control points of the curve. This is only supported for curve objects. */
apply_modifiers?: H.In<boolean>;
}): H.Ptr<R.Curve>;
/** Clears curve data-block created by to_curve() */
to_curve_clear(): H.Ref<void>;
/** Find armature influencing this object as a parent or via a modifier */
find_armature(): H.Ptr<R.Object>;
/**
* Add shape key to this object
* @param name Unique name for the new key-block
* @param from_mix Create new shape from existing mix of shapes
*/
shape_key_add(name?: H.In<string>, from_mix?: H.In<boolean>): H.Ptr<R.ShapeKey>;
/**
* Add shape key to this object
* @param name Unique name for the new key-block
* @param from_mix Create new shape from existing mix of shapes
*/
shape_key_add(kw: {
/** Unique name for the new key-block */
name?: H.In<string>;
/** Create new shape from existing mix of shapes */
from_mix?: H.In<boolean>;
}): H.Ptr<R.ShapeKey>;
/**
* Remove a Shape Key from this object
* @param key Key-block to be removed
*/
shape_key_remove(key: R.ShapeKey): H.Ref<void>;
/**
* Remove a Shape Key from this object
* @param key Key-block to be removed
*/
shape_key_remove(kw: {
/** Key-block to be removed */
key: R.ShapeKey;
}): H.Ref<void>;
/** Remove all Shape Keys from this object */
shape_key_clear(): H.Ref<void>;
/** Return selected shape keys */
shape_keys_selected(): H.Own<H.Coll<R.ShapeKey>>;
/**
* Cast a ray onto evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Origin of the ray, in object space
* @param direction Direction of the ray, in object space
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
ray_cast(origin: H.In<M.VectorLike>, direction: H.In<M.VectorLike>, distance?: H.In<number>, depsgraph?: R.Depsgraph | null): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Cast a ray onto evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Origin of the ray, in object space
* @param direction Direction of the ray, in object space
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
ray_cast(origin: H.In<M.VectorLike>, direction: H.In<M.VectorLike>, kw: {
/** Maximum distance */
distance?: H.In<number>;
/** Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable) */
depsgraph?: R.Depsgraph | null;
}): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Cast a ray onto evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Origin of the ray, in object space
* @param direction Direction of the ray, in object space
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
ray_cast(kw: {
/** Origin of the ray, in object space */
origin: H.In<M.VectorLike>;
/** Direction of the ray, in object space */
direction: H.In<M.VectorLike>;
/** Maximum distance */
distance?: H.In<number>;
/** Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable) */
depsgraph?: R.Depsgraph | null;
}): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Find the nearest point on evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Point to find closest geometry from (in object space)
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
closest_point_on_mesh(origin: H.In<M.VectorLike>, distance?: H.In<number>, depsgraph?: R.Depsgraph | null): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Find the nearest point on evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Point to find closest geometry from (in object space)
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
closest_point_on_mesh(origin: H.In<M.VectorLike>, kw: {
/** Maximum distance */
distance?: H.In<number>;
/** Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable) */
depsgraph?: R.Depsgraph | null;
}): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Find the nearest point on evaluated geometry, in object space (using context's or provided depsgraph to get evaluated mesh if needed)
* @param origin Point to find closest geometry from (in object space)
* @param distance Maximum distance
* @param depsgraph Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable)
*/
closest_point_on_mesh(kw: {
/** Point to find closest geometry from (in object space) */
origin: H.In<M.VectorLike>;
/** Maximum distance */
distance?: H.In<number>;
/** Depsgraph to use to get evaluated data, when called from original object (only needed if current Context's depsgraph is not suitable) */
depsgraph?: R.Depsgraph | null;
}): H.Ref<[boolean, M.Vector, M.Vector, number]>;
/**
* Determine if this object is modified from the base mesh data
* @param scene Scene in which to check the object
* @param settings Modifier settings to apply - `PREVIEW`: Preview (Apply modifier preview settings) - `RENDER`: Render (Apply modifier render settings)
*/
is_modified(scene: R.Scene, settings: H.In<"PREVIEW" | "RENDER">): H.Ref<boolean>;
/**
* Determine if this object is modified from the base mesh data
* @param scene Scene in which to check the object
* @param settings Modifier settings to apply - `PREVIEW`: Preview (Apply modifier preview settings) - `RENDER`: Render (Apply modifier render settings)
*/
is_modified(kw: {
/** Scene in which to check the object */
scene: R.Scene;
/**
* Modifier settings to apply
* - `PREVIEW`: Preview (Apply modifier preview settings)
* - `RENDER`: Render (Apply modifier render settings)
*/
settings: H.In<"PREVIEW" | "RENDER">;
}): H.Ref<boolean>;
/**
* Determine if this object is modified by a deformation from the base mesh data
* @param scene Scene in which to check the object
* @param settings Modifier settings to apply - `PREVIEW`: Preview (Apply modifier preview settings) - `RENDER`: Render (Apply modifier render settings)
*/
is_deform_modified(scene: R.Scene, settings: H.In<"PREVIEW" | "RENDER">): H.Ref<boolean>;
/**
* Determine if this object is modified by a deformation from the base mesh data
* @param scene Scene in which to check the object
* @param settings Modifier settings to apply - `PREVIEW`: Preview (Apply modifier preview settings) - `RENDER`: Render (Apply modifier render settings)
*/
is_deform_modified(kw: {
/** Scene in which to check the object */
scene: R.Scene;
/**
* Modifier settings to apply
* - `PREVIEW`: Preview (Apply modifier preview settings)
* - `RENDER`: Render (Apply modifier render settings)
*/
settings: H.In<"PREVIEW" | "RENDER">;
}): H.Ref<boolean>;
/** Load the objects edit-mode data into the object data */
update_from_editmode(): H.Ref<boolean>;
/** Release memory used by caches associated with this object. Intended to be used by render engines only. */
cache_release(): H.Ref<void>;
/**
* All the children of this object.
*
* .. note:: Takes ``O(len(bpy.data.objects))`` time.
*/
get children(): H.Seq<R.Object>;
/**
* A list of all children from this object.
*
* .. note:: Takes ``O(len(bpy.data.objects))`` time.
*/
get children_recursive(): H.Seq<R.Object>;
/**
* The collections this object is in.
*
* .. note:: Takes ``O(len(bpy.data.collections) + len(bpy.data.scenes))`` time.
*/
get users_collection(): H.Seq<R.Collection>;
/**
* The scenes this object is in.
*
* .. note:: Takes ``O(len(bpy.data.scenes) * len(bpy.data.objects))`` time.
*/
get users_scene(): H.Seq<R.Scene>;
/**
* Get the evaluated geometry set of this evaluated object. This only works for
* objects that contain geometry data like meshes and curves but not e.g. cameras.
* @returns The evaluated geometry.
*/
evaluated_geometry(): any;
}
/**
* An object instance in a View Layer (currently never exposed in Python API)
*
* bpy.types.ObjectBase
*/
export interface ObjectBase extends R.bpy_struct {
/** Object this base links to */
get object(): H.Ptr<R.Object>;
/** Object base selection state Default: False. */
get select(): H.Ref<boolean>;
set select(v: H.In<boolean>);
/** Temporarily hide in viewport Default: False. */
get hide_viewport(): H.Ref<boolean>;
set hide_viewport(v: H.In<boolean>);
}
/**
* Collection of object constraints
*
* bpy.types.ObjectConstraints
*/
export interface ObjectConstraints {
/** Active Object constraint */
get active(): H.Ptr<R.Constraint>;
set active(v: R.Constraint | null);
/**
* Add a new constraint to this object
* @param type Constraint type to add
*/
"new"<K extends keyof R.ObjectConstraints_new_types>(type: K): H.Ptr<R.ObjectConstraints_new_types[K]>;
/**
* Add a new constraint to this object
* @param type Constraint type to add
*/
"new"<K extends keyof R.ObjectConstraints_new_types>(kw: {
/** Constraint type to add */
type: K;
}): H.Ptr<R.ObjectConstraints_new_types[K]>;
/**
* Add a new constraint to this object
* @param type Constraint type to add
*/
"new"(type: H.In<E.ConstraintType>): H.Ptr<R.Constraint>;
/**
* Add a new constraint to this object
* @param type Constraint type to add
*/
"new"(kw: {
/** Constraint type to add */
type: H.In<E.ConstraintType>;
}): H.Ptr<R.Constraint>;
/**
* Remove a constraint from this object
* @param constraint Removed constraint
*/
remove(constraint: R.Constraint): H.Ref<void>;
/**
* Remove a constraint from this object
* @param constraint Removed constraint
*/
remove(kw: {
/** Removed constraint */
constraint: R.Constraint;
}): H.Ref<void>;
/** Remove all constraint from this object */
clear(): H.Ref<void>;
/**
* Move a constraint to a different position
* @param from_index Index to move
* @param to_index Target index
*/
move(from_index: H.In<number>, to_index: H.In<number>): H.Ref<void>;
/**
* Move a constraint to a different position
* @param from_index Index to move
* @param to_index Target index
*/
move(kw: {
/** Index to move */
from_index: H.In<number>;
/** Target index */
to_index: H.In<number>;
}): H.Ref<void>;
/**
* Add a new constraint that is a copy of the given one
* @param constraint Constraint to copy - may belong to a different object
*/
copy(constraint: R.Constraint): H.Ptr<R.Constraint>;
/**
* Add a new constraint that is a copy of the given one
* @param constraint Constraint to copy - may belong to a different object
*/
copy(kw: {
/** Constraint to copy - may belong to a different object */
constraint: R.Constraint;
}): H.Ptr<R.Constraint>;
}
/**
* Object display settings for 3D viewport
*
* bpy.types.ObjectDisplay (in Object)
*/
export interface ObjectDisplay extends R.bpy_struct {
/** Object cast shadows in the 3D viewport Default: True. */
get show_shadows(): H.Ref<boolean>;
set show_shadows(v: H.In<boolean>);
}
/** bpy.types.ObjectLightLinking (in Object) */
export interface ObjectLightLinking extends R.bpy_struct {
/** Collection which defines light linking relation of this emitter */
get receiver_collection(): H.Ptr<R.Collection>;
set receiver_collection(v: R.Collection | null);
/** Collection which defines objects which block light from this emitter */
get blocker_collection(): H.Ptr<R.Collection>;
set blocker_collection(v: R.Collection | null);
}
/**
* Object Line Art settings
*
* bpy.types.ObjectLineArt
*/
export interface ObjectLineArt extends R.bpy_struct {
/** How to use this object in Line Art calculation Default: 'INHERIT'. */
get usage(): H.Ref<E.ObjectLineArtUsage>;
set usage(v: H.In<E.ObjectLineArtUsage>);
/** Use this object's crease setting to overwrite scene global Default: False. */
get use_crease_override(): H.Ref<boolean>;
set use_crease_override(v: H.In<boolean>);
/** Angles smaller than this will be treated as creases Range: 0 to 3.1415927410125732. Default: 2.44346. */
get crease_threshold(): H.Ref<number>;
set crease_threshold(v: H.In<number>);
/** Use this object's intersection priority to override collection setting Default: False. */
get use_intersection_priority_override(): H.Ref<boolean>;
set use_intersection_priority_override(v: H.In<boolean>);
/** The intersection line will be included into the object with the higher intersection priority value Range: 0 to 255. Default: 0. */
get intersection_priority(): H.Ref<number>;
set intersection_priority(v: H.In<number>);
}
/**
* Collection of object modifiers
*
* bpy.types.ObjectModifiers
*/
export interface ObjectModifiers {
/** The active modifier in the list */
get active(): H.Ptr<R.Modifier>;
set active(v: R.Modifier | null);
/**
* Add a new modifier
* @param name New name for the modifier
* @param type Modifier type to add
*/
"new"<K extends keyof R.ObjectModifiers_new_types>(name: H.In<string>, type: K): H.Ptr<R.ObjectModifiers_new_types[K]>;
/**
* Add a new modifier
* @param name New name for the modifier
* @param type Modifier type to add
*/
"new"<K extends keyof R.ObjectModifiers_new_types>(kw: {
/** New name for the modifier */
name: H.In<string>;
/** Modifier type to add */
type: K;
}): H.Ptr<R.ObjectModifiers_new_types[K]>;
/**
* Add a new modifier
* @param name New name for the modifier
* @param type Modifier type to add
*/
"new"(name: H.In<string>, type: H.In<E.ModifierType>): H.Ptr<R.Modifier>;
/**
* Add a new modifier
* @param name New name for the modifier
* @param type Modifier type to add
*/
"new"(kw: {
/** New name for the modifier */
name: H.In<string>;
/** Modifier type to add */
type: H.In<E.ModifierType>;
}): H.Ptr<R.Modifier>;
/**
* Remove an existing modifier from the object
* @param modifier Modifier to remove
*/
remove(modifier: R.Modifier): H.Ref<void>;
/**
* Remove an existing modifier from the object
* @param modifier Modifier to remove
*/
remove(kw: {
/** Modifier to remove */
modifier: R.Modifier;
}): H.Ref<void>;
/** Remove all modifiers from the object */
clear(): H.Ref<void>;
/**
* Move a modifier to a different position
* @param from_index Index to move
* @param to_index Target index
*/
move(from_index: H.In<number>, to_index: H.In<number>): H.Ref<void>;
/**
* Move a modifier to a different position
* @param from_index Index to move
* @param to_index Target index
*/
move(kw: {
/** Index to move */
from_index: H.In<number>;
/** Target index */
to_index: H.In<number>;
}): H.Ref<void>;
}
/**
* Collection of object effects
*
* bpy.types.ObjectShaderFx
*/
export interface ObjectShaderFx {
/**
* Add a new shader fx
* @param name New name for the effect
* @param type Effect type to add
*/
"new"<K extends keyof R.ObjectShaderFx_new_types>(name: H.In<string>, type: K): H.Ptr<R.ObjectShaderFx_new_types[K]>;
/**
* Add a new shader fx
* @param name New name for the effect
* @param type Effect type to add
*/
"new"<K extends keyof R.ObjectShaderFx_new_types>(kw: {
/** New name for the effect */
name: H.In<string>;
/** Effect type to add */
type: K;
}): H.Ptr<R.ObjectShaderFx_new_types[K]>;
/**
* Add a new shader fx
* @param name New name for the effect
* @param type Effect type to add
*/
"new"(name: H.In<string>, type: H.In<E.ObjectShaderFxType>): H.Ptr<R.ShaderFx>;
/**
* Add a new shader fx
* @param name New name for the effect
* @param type Effect type to add
*/
"new"(kw: {
/** New name for the effect */
name: H.In<string>;
/** Effect type to add */
type: H.In<E.ObjectShaderFxType>;
}): H.Ptr<R.ShaderFx>;
/**
* Remove an existing effect from the object
* @param shader_fx Effect to remove
*/
remove(shader_fx: R.ShaderFx): H.Ref<void>;
/**
* Remove an existing effect from the object
* @param shader_fx Effect to remove
*/
remove(kw: {
/** Effect to remove */
shader_fx: R.ShaderFx;
}): H.Ref<void>;
/** Remove all effects from the object */
clear(): H.Ref<void>;
}
/**
* Lock motion to the reconstructed object movement
*
* bpy.types.ObjectSolverConstraint
*/
export interface ObjectSolverConstraint extends R.Constraint {
/** Movie Clip to get tracking data from */
get clip(): H.Ptr<R.MovieClip>;
set clip(v: R.MovieClip | null);
/** Use active clip defined in scene Default: False. */
get use_active_clip(): H.Ref<boolean>;
set use_active_clip(v: H.In<boolean>);
/** Set to true to request recalculation of the inverse matrix Default: False. */
get set_inverse_pending(): H.Ref<boolean>;
set set_inverse_pending(v: H.In<boolean>);
/** Movie tracking object to follow Default: "". */
get object(): H.Ref<string>;
set object(v: H.In<string>);
/** Camera to which motion is parented (if empty active scene camera is used) */
get camera(): H.Ptr<R.Object>;
set camera(v: R.Object | null);
}
/**
* Simulate an ocean surface
*
* bpy.types.OceanModifier
*/
export interface OceanModifier extends R.Modifier {
/**
* Method of modifying geometry Default: 'GENERATE'.
* - `GENERATE`: Generate (Generate ocean surface geometry at the specified resolution)
* - `DISPLACE`: Displace (Displace existing geometry according to simulation)
*/
get geometry_mode(): H.Ref<"GENERATE" | "DISPLACE">;
set geometry_mode(v: H.In<"GENERATE" | "DISPLACE">);
/** Surface scale factor (does not affect the height of the waves) Range: 0 to inf. Default: 1.0. */
get size(): H.Ref<number>;
set size(v: H.In<number>);
/** Repetitions of the generated surface in X Range: 1 to 1024. Default: 1. */
get repeat_x(): H.Ref<number>;
set repeat_x(v: H.In<number>);
/** Repetitions of the generated surface in Y Range: 1 to 1024. Default: 1. */
get repeat_y(): H.Ref<number>;
set repeat_y(v: H.In<number>);
/** Output normals for bump mapping - disabling can speed up performance if it's not needed Default: False. */
get use_normals(): H.Ref<boolean>;
set use_normals(v: H.In<boolean>);
/** Generate foam mask as a vertex color channel Default: False. */
get use_foam(): H.Ref<boolean>;
set use_foam(v: H.In<boolean>);
/** Generate map of spray direction as a vertex color channel Default: False. */
get use_spray(): H.Ref<boolean>;
set use_spray(v: H.In<boolean>);
/** Invert the spray direction map Default: False. */
get invert_spray(): H.Ref<boolean>;
set invert_spray(v: H.In<boolean>);
/** Name of the vertex color layer used for the spray direction map Default: "". */
get spray_layer_name(): H.Ref<string>;
set spray_layer_name(v: H.In<string>);
/** Resolution of the generated surface for rendering and baking Range: 1 to 1024. Default: 7. */
get resolution(): H.Ref<number>;
set resolution(v: H.In<number>);
/** Viewport resolution of the generated surface Range: 1 to 1024. Default: 7. */
get viewport_resolution(): H.Ref<number>;
set viewport_resolution(v: H.In<number>);
/** Size of the simulation domain (in meters), and of the generated geometry (in BU) Range: -2147483648 to 2147483647. Default: 50. */
get spatial_size(): H.Ref<number>;
set spatial_size(v: H.In<number>);
/** Wind speed Default: 30.0. */
get wind_velocity(): H.Ref<number>;
set wind_velocity(v: H.In<number>);
/** Damp reflected waves going in opposite direction to the wind Range: 0 to 1. Default: 0.5. */
get damping(): H.Ref<number>;
set damping(v: H.In<number>);
/** Shortest allowed wavelength Range: 0 to inf. Default: 0.01. */
get wave_scale_min(): H.Ref<number>;
set wave_scale_min(v: H.In<number>);
/** How much the waves are aligned to each other Range: 0 to 1. Default: 0.0. */
get wave_alignment(): H.Ref<number>;
set wave_alignment(v: H.In<number>);
/** Main direction of the waves when they are (partially) aligned Default: 0.0. */
get wave_direction(): H.Ref<number>;
set wave_direction(v: H.In<number>);
/** Scale of the displacement effect Range: 0 to inf. Default: 1.0. */
get wave_scale(): H.Ref<number>;
set wave_scale(v: H.In<number>);
/** Depth of the solid ground below the water surface Default: 200.0. */
get depth(): H.Ref<number>;
set depth(v: H.In<number>);
/** Amount of generated foam Default: 0.0. */
get foam_coverage(): H.Ref<number>;
set foam_coverage(v: H.In<number>);
/** How much foam accumulates over time (baked ocean only) Range: 0 to inf. Default: 0.98. */
get bake_foam_fade(): H.Ref<number>;
set bake_foam_fade(v: H.In<number>);
/** Name of the vertex color layer used for foam Default: "". */
get foam_layer_name(): H.Ref<string>;
set foam_layer_name(v: H.In<string>);
/** Choppiness of the wave's crest (adds some horizontal component to the displacement) Range: 0 to inf. Default: 1.0. */
get choppiness(): H.Ref<number>;
set choppiness(v: H.In<number>);
/** Current time of the simulation Range: 0 to inf. Default: 1.0. */
get time(): H.Ref<number>;
set time(v: H.In<number>);
/**
* Spectrum to use Default: 'PHILLIPS'.
* - `PHILLIPS`: Turbulent Ocean (Use for turbulent seas with foam)
* - `PIERSON_MOSKOWITZ`: Established Ocean (Use for a large area, established ocean (Pierson-Moskowitz method))
* - `JONSWAP`: Established Ocean (Sharp Peaks) (Use for established oceans ('JONSWAP', Pierson-Moskowitz method) with peak sharpening)
* - `TEXEL_MARSEN_ARSLOE`: Shallow Water (Use for shallow water ('JONSWAP', 'TMA' - Texel-Marsen-Arsloe method))
*/
get spectrum(): H.Ref<"PHILLIPS" | "PIERSON_MOSKOWITZ" | "JONSWAP" | "TEXEL_MARSEN_ARSLOE">;
set spectrum(v: H.In<"PHILLIPS" | "PIERSON_MOSKOWITZ" | "JONSWAP" | "TEXEL_MARSEN_ARSLOE">);
/** This is the distance from a lee shore, called the fetch, or the distance over which the wind blows with constant velocity. Used by 'JONSWAP' and 'TMA' models. Range: 0 to inf. Default: 120.0. */
get fetch_jonswap(): H.Ref<number>;
set fetch_jonswap(v: H.In<number>);
/** Peak sharpening for 'JONSWAP' and 'TMA' models Range: 0 to 1. Default: 0.0. */
get sharpen_peak_jonswap(): H.Ref<number>;
set sharpen_peak_jonswap(v: H.In<number>);
/** Seed of the random generator Range: 0 to 2147483647. Default: 0. */
get random_seed(): H.Ref<number>;
set random_seed(v: H.In<number>);
/** Start frame of the ocean baking Range: -2147483648 to 2147483647. Default: 1. */
get frame_start(): H.Ref<number>;
set frame_start(v: H.In<number>);
/** End frame of the ocean baking Range: -2147483648 to 2147483647. Default: 250. */
get frame_end(): H.Ref<number>;
set frame_end(v: H.In<number>);
/** Whether the ocean is using cached data or simulating Default: False. */
get is_cached(): H.Ref<boolean>;
/** Path to a folder to store external baked images Default: "". */
get filepath(): H.Ref<string>;
set filepath(v: H.In<string>);
}
/**
* Storage of an operator being executed, or registered after execution
*
* bpy.types.Operator
*/
export interface Operator extends R.bpy_struct {
/** Name Default: "". */
get name(): H.Ref<string>;
/** Properties */
get properties(): H.Own<R.OperatorProperties>;
/** Operator has a set of reports (warnings and errors) from last execution Default: False. */
get has_reports(): H.Ref<boolean>;
/** Default: "". */
get bl_idname(): H.Ref<string>;
set bl_idname(v: H.In<string>);
/** Default: "". */
get bl_label(): H.Ref<string>;
set bl_label(v: H.In<string>);
/** Default: "Operator". */
get bl_translation_context(): H.Ref<string>;
set bl_translation_context(v: H.In<string>);
/** Default: "". */
get bl_description(): H.Ref<string>;
set bl_description(v: H.In<string>);
/** Default: "". */
get bl_undo_group(): H.Ref<string>;
set bl_undo_group(v: H.In<string>);
/** Options for this operator type Default: set(). */
get bl_options(): H.Ref<Set<E.MacroBlOptions>>;
set bl_options(v: H.In<Set<E.MacroBlOptions>>);
/** Cursor to use when waiting for the user to select a location to activate the operator (when ``bl_options`` has ``DEPENDS_ON_CURSOR`` set) Default: 'DEFAULT'. */
get bl_cursor_pending(): H.Ref<E.MacroBlCursorPending>;
set bl_cursor_pending(v: H.In<E.MacroBlCursorPending>);
get layout(): H.Ptr<R.UILayout>;
/** Runtime options */
get options(): H.Own<R.OperatorOptions>;
/** Macros */
readonly macros: H.Own<H.Coll<R.Macro>>;
/** report */
report(type: H.In<Set<E.MacroType>>, message: H.In<string>): H.Ref<void>;
/** report */
report(kw: { type: H.In<Set<E.MacroType>>; message: H.In<string> }): H.Ref<void>;
/** is_repeat */
is_repeat(): H.Ref<boolean>;
/** Test if the operator can be called or not */
poll(context: R.Context): H.Ref<boolean>;
/** Test if the operator can be called or not */
poll(kw: { context: R.Context }): H.Ref<boolean>;
/** Execute the operator */
execute(context: R.Context): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Execute the operator */
execute(kw: { context: R.Context }): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Check the operator settings, return True to signal a change to redraw */
check(context: R.Context): H.Ref<boolean>;
/** Check the operator settings, return True to signal a change to redraw */
check(kw: { context: R.Context }): H.Ref<boolean>;
/** Invoke the operator */
invoke(context: R.Context, event: R.Event): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Invoke the operator */
invoke(kw: { context: R.Context; event: R.Event }): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Modal operator function */
modal(context: R.Context, event: R.Event): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Modal operator function */
modal(kw: { context: R.Context; event: R.Event }): H.Ref<Set<"RUNNING_MODAL" | "CANCELLED" | "FINISHED" | "PASS_THROUGH" | "INTERFACE">>;
/** Draw function for the operator */
draw(context: R.Context): H.Ref<void>;
/** Draw function for the operator */
draw(kw: { context: R.Context }): H.Ref<void>;
/** Called when the operator is canceled */
cancel(context: R.Context): H.Ref<void>;
/** Called when the operator is canceled */
cancel(kw: { context: R.Context }): H.Ref<void>;
/** Compute a description string that depends on parameters */
description(context: R.Context, properties: R.OperatorProperties): H.Ref<string>;
/** Compute a description string that depends on parameters */
description(kw: { context: R.Context; properties: R.OperatorProperties }): H.Ref<string>;
/** @returns A copy of the properties as a dictionary. */
as_keywords(kw?: {
/** Property names to omit from the result. */
ignore?: H.In<readonly string[]>;
}): H.Ref<Map<string, any>>;
/**
* Set the message to show in the tool-tip when poll fails.
*
* When message is callable, additional user defined positional arguments are passed to the message function.
* @param message The message or a function that returns the message.
* @param args A sequence of arguments to pass to ``message``, if it's a callable, otherwise argument is not available.
*/
poll_message_set(message: any, ...args: any[]): H.Ref<void>;
}
/** bpy.types.OperatorFileListElement */
export interface OperatorFileListElement extends R.PropertyGroup {
}
/**
* Storage of a sub operator in a macro after it has been added
*
* bpy.types.OperatorMacro
*/
export interface OperatorMacro extends R.bpy_struct {
/** Properties */
get properties(): H.Own<R.OperatorProperties>;
}
/**
* Mouse path values for operators that record such paths
*
* bpy.types.OperatorMousePath
*/
export interface OperatorMousePath extends R.PropertyGroup {
/** Mouse location Default: (0.0, 0.0). */
get loc(): H.Remote<M.Vector>;
set loc(v: H.In<M.VectorLike>);
/** Time of mouse location Default: 0.0. */
get time(): H.Ref<number>;
set time(v: H.In<number>);
}
/**
* Runtime options
*
* bpy.types.OperatorOptions
*/
export interface OperatorOptions extends R.bpy_struct {
/** True when the cursor is grabbed Default: False. */
get is_grab_cursor(): H.Ref<boolean>;
/** True when invoked (even if only the execute callbacks available) Default: False. */
get is_invoke(): H.Ref<boolean>;
/** True when run from the 'Adjust Last Operation' panel Default: False. */
get is_repeat(): H.Ref<boolean>;
/** True when run from the operator 'Repeat Last' Default: False. */
get is_repeat_last(): H.Ref<boolean>;
/** Enable to use the region under the cursor for modal execution Default: False. */
get use_cursor_region(): H.Ref<boolean>;
set use_cursor_region(v: H.In<boolean>);
}
/**
* Input properties of an operator
*
* bpy.types.OperatorProperties
*/
export interface OperatorProperties extends R.bpy_struct {
/**
* DEBUG ONLY. Internal access to runtime-defined RNA data storage, intended solely for testing and debugging purposes. Do not access it in regular scripting work, and in particular, do not assume that it contains writable data
* @param do_create Ensure that system properties are created if they do not exist yet
*/
bl_system_properties_get(do_create?: H.In<boolean>): H.Ptr<R.PropertyGroup>;
/**
* DEBUG ONLY. Internal access to runtime-defined RNA data storage, intended solely for testing and debugging purposes. Do not access it in regular scripting work, and in particular, do not assume that it contains writable data
* @param do_create Ensure that system properties are created if they do not exist yet
*/
bl_system_properties_get(kw: {
/** Ensure that system properties are created if they do not exist yet */
do_create?: H.In<boolean>;
}): H.Ptr<R.PropertyGroup>;
}
/** bpy.types.OperatorStrokeElement */
export interface OperatorStrokeElement extends R.PropertyGroup {
/** Location Default: (0.0, 0.0, 0.0). */
get location(): H.Remote<M.Vector>;
set location(v: H.In<M.VectorLike>);
/** Mouse Default: (0.0, 0.0). */
get mouse(): H.Remote<M.Vector>;
set mouse(v: H.In<M.VectorLike>);
/** Mouse Event Default: (0.0, 0.0). */
get mouse_event(): H.Remote<M.Vector>;
set mouse_event(v: H.In<M.VectorLike>);
/** Tablet pressure Range: 0 to 1. Default: 0.0. */
get pressure(): H.Ref<number>;
set pressure(v: H.In<number>);
/** Brush size in screen space Range: 0 to inf. Default: 0.0. */
get size(): H.Ref<number>;
set size(v: H.In<number>);
/** Pen tilt from left (-1.0) to right (+1.0) Range: -1 to 1. Default: 0.0. */
get x_tilt(): H.Ref<number>;
set x_tilt(v: H.In<number>);
/** Pen tilt from backward (-1.0) to forward (+1.0) Range: -1 to 1. Default: 0.0. */
get y_tilt(): H.Ref<number>;
set y_tilt(v: H.In<number>);
/** Time Range: 0 to inf. Default: 0.0. */
get time(): H.Ref<number>;
set time(v: H.In<number>);
/** Is Stroke Start Default: False. */
get is_start(): H.Ref<boolean>;
set is_start(v: H.In<boolean>);
}