Blender V4.3
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
 
struct Ipo *ipo DNA_DEPRECATED
 
IDfrom
 
int totkey
 
short flag
 
char type
 
char _pad2
 
float ctime
 
int uidgen
 

Detailed Description

Definition at line 59 of file DNA_key_types.h.

Member Data Documentation

◆ _pad

char Key::_pad[4]

Definition at line 78 of file DNA_key_types.h.

◆ _pad2

char Key::_pad2

Definition at line 92 of file DNA_key_types.h.

◆ adt

◆ block

ListBase Key::block

list of KeyBlock's

Definition at line 81 of file DNA_key_types.h.

Referenced by 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_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_to_mesh_shape(), blender::deg::DepsgraphNodeBuilder::build_shapekeys(), blender::deg::DepsgraphRelationBuilder::build_shapekeys(), calc_shapeKeys(), blender::io::usd::create_blend_shapes(), deform_verts(), do_curve_key(), do_latt_key(), do_mesh_key(), draw_selected_name(), ED_mesh_join_objects_exec(), blender::ed::object::ED_object_shape_key_add(), edbm_blend_from_shape_exec(), find_object_active_key_uid(), blender::io::usd::get_blendshape_weights(), insert_curvekey(), insert_lattkey(), join_mesh_single(), 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_mirror(), blender::ed::object::object_shapekey_remove(), GeometryExporter::operator()(), blender::ed::sculpt_paint::undo::restore_active_shape_key(), blender::ed::object::shape_key_clear_exec(), blender::ed::object::shape_key_lock_exec(), blender::ed::object::shape_key_retime_exec(), shapekey_blend_read_data(), shapekey_blend_write(), shapekey_copy_data(), shapekey_free_data(), and switch_keys_direction().

◆ 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 96 of file DNA_key_types.h.

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

◆ DNA_DEPRECATED

struct Ipo* ipo Key::DNA_DEPRECATED

old animation system, deprecated for 2.5

Definition at line 83 of file DNA_key_types.h.

◆ 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 75 of file DNA_key_types.h.

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

◆ flag

short Key::flag

Definition at line 89 of file DNA_key_types.h.

Referenced by acf_dsskey_setting_ptr().

◆ from

◆ id

◆ refkey

KeyBlock* Key::refkey

commonly called 'Basis', (Key->type == KEY_RELATIVE) only. Looks like this is always 'key->block.first', perhaps later on it could be defined as some other KeyBlock - campbell

Definition at line 69 of file DNA_key_types.h.

Referenced by BKE_key_evaluate_object_ex(), BKE_key_sort(), BKE_keyblock_add(), BKE_keyblock_from_object_reference(), BKE_keyblock_move(), BKE_object_shapekey_remove(), blo_do_versions_250(), blo_do_versions_pre250(), bm_to_mesh_shape(), calc_shapeKeys(), cp_key(), deform_matrices(), deform_matrices_EM(), key_evaluate_relative(), shapekey_blend_read_data(), and shapekey_copy_data().

◆ 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 102 of file DNA_key_types.h.

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


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