Blender V5.0
Key Struct Reference

#include <DNA_key_types.h>

Public Attributes

ID id
struct AnimDataadt
KeyBlockrefkey
char elemstr [32]
int elemsize
char _pad [4]
ListBase block
IDfrom
int totkey
short flag
char type
char _pad2
float ctime
int uidgen

Detailed Description

Definition at line 64 of file DNA_key_types.h.

Member Data Documentation

◆ _pad

char Key::_pad[4]

Definition at line 88 of file DNA_key_types.h.

◆ _pad2

char Key::_pad2

Definition at line 101 of file DNA_key_types.h.

◆ adt

◆ block

ListBase Key::block

A list of KeyBlock's.

Definition at line 91 of file DNA_key_types.h.

Referenced by blender::ed::geometry::add_shape_keys_as_attributes(), blender::ed::object::add_shapekey_layers(), animdata_filter_shapekey(), BKE_curve_transform_ex(), BKE_curve_translate(), BKE_editlattice_load(), BKE_key_evaluate_object_ex(), BKE_key_free_nolib(), BKE_key_sort(), BKE_keyblock_add(), BKE_keyblock_add_ctime(), BKE_keyblock_curve_data_set_with_mat4(), BKE_keyblock_data_get_from_shape(), BKE_keyblock_data_set(), BKE_keyblock_data_set_with_mat4(), BKE_keyblock_duplicate(), BKE_keyblock_element_count_from_shape(), BKE_keyblock_find_by_index(), BKE_keyblock_find_name(), BKE_keyblock_find_uid(), BKE_keyblock_get_dependent_keys(), BKE_keyblock_is_basis(), BKE_keyblock_move(), BKE_lattice_transform(), BKE_lattice_translate(), BKE_object_shapekey_remove(), blo_do_versions_key_uidgen(), blo_do_versions_pre250(), BM_mesh_bm_from_me(), bm_to_mesh_shape(), blender::deg::DepsgraphNodeBuilder::build_shapekeys(), blender::deg::DepsgraphRelationBuilder::build_shapekeys(), blender::ed::object::shapekey::ShapeKeyTreeView::build_tree(), calc_shapeKeys(), click_select_channel_shapekey(), blender::io::usd::create_blend_shapes(), deform_verts(), do_curve_key(), do_latt_key(), do_mesh_key(), draw_selected_name(), edbm_blend_from_shape_exec(), find_object_active_key_uid(), blender::ed::sculpt_paint::ShapeKeyData::from_object(), blender::io::usd::get_blendshape_weights(), blender::io::usd::get_shape_key_basis_mesh(), insert_curvekey(), insert_lattkey(), blender::ed::mesh::join_shape_keys(), key_evaluate_relative(), keyblock_get_per_block_weights(), make_new_animlistelem(), move_shapekey_layers_to_keyblocks(), blender::ed::object::object_is_any_shape_key_locked(), blender::ed::object::object_shape_key_add(), blender::ed::object::object_shape_key_mirror(), object_shapenr_basis_index_ensured(), blender::ed::object::object_update_shapes_poll(), blender::ed::object::shapekey::ShapeKeyDropTarget::on_drop(), blender::ed::geometry::remove_shape_key_attributes(), blender::ed::sculpt_paint::undo::restore_active_shape_key(), blender::ed::object::shape_key_clear_exec(), blender::ed::object::shape_key_copy_exec(), blender::ed::object::shape_key_lock_exec(), blender::ed::object::shape_key_make_basis_exec(), blender::ed::object::shape_key_move_exec(), blender::ed::object::shape_key_remove_exec(), blender::ed::object::shape_key_retime_exec(), shapekey_blend_read_data(), shapekey_blend_write(), shapekey_copy_data(), shapekey_free_data(), blender::ed::geometry::store_attributes_to_shape_keys(), switch_keys_direction(), ui_context_selected_key_blocks(), and um_arraystore_expand().

◆ ctime

float Key::ctime

Only used when (Key::type == KEY_NORMAL), this value is used as a time slider, rather than using the scene's time, this value can be animated to give greater control

Definition at line 105 of file DNA_key_types.h.

Referenced by BKE_keyblock_add_ctime(), do_curve_key(), do_latt_key(), and do_mesh_key().

◆ elemsize

◆ elemstr

char Key::elemstr[32]

This is not a regular string, although it is \0 terminated this is an array of (element_array_size, element_type) pairs (each one char) used for calculating shape key-blocks.

Definition at line 85 of file DNA_key_types.h.

Referenced by BKE_key_add(), cp_key(), do_key(), and key_evaluate_relative().

◆ flag

short Key::flag

Definition at line 98 of file DNA_key_types.h.

Referenced by acf_dsskey_setting_ptr().

◆ from

◆ id

ID Key::id

◆ refkey

◆ totkey

◆ type

◆ uidgen

int Key::uidgen

Can never be 0, this is used for detecting old data. current free UID for key-blocks.

Definition at line 111 of file DNA_key_types.h.

Referenced by BKE_key_add(), BKE_keyblock_add(), blo_do_versions_key_uidgen(), and BM_mesh_bm_from_me().


The documentation for this struct was generated from the following file: