Blender  V3.3
Public Attributes | List of all members
KeyBlock Struct Reference

#include <DNA_key_types.h>

Public Attributes

struct KeyBlocknext
 
struct KeyBlockprev
 
float pos
 
float curval
 
short type
 
char _pad1 [2]
 
short relative
 
short flag
 
int totelem
 
int uid
 
voiddata
 
char name [64]
 
char vgroup [64]
 
float slidermin
 
float slidermax
 

Detailed Description

Definition at line 24 of file DNA_key_types.h.

Member Data Documentation

◆ _pad1

char KeyBlock::_pad1[2]

Definition at line 38 of file DNA_key_types.h.

◆ curval

float KeyBlock::curval

influence (typically [0 - 1] but can be more), (Key->type == KEY_RELATIVE) only.

Definition at line 34 of file DNA_key_types.h.

Referenced by BKE_keyblock_copy_settings(), deformMatrices(), deformMatricesEM(), key_evaluate_relative(), ArmatureImporter::make_shape_keys(), and shape_key_clear_exec().

◆ data

void* KeyBlock::data

◆ flag

short KeyBlock::flag

◆ name

char KeyBlock::name[64]

◆ next

struct KeyBlock* KeyBlock::next

◆ pos

float KeyBlock::pos

point in time (Key->type == KEY_NORMAL) only, for historic reasons this is relative to (Key->ctime / 100), so this value increments by 0.1f per frame.

Definition at line 32 of file DNA_key_types.h.

Referenced by BKE_key_sort(), BKE_keyblock_add(), BKE_keyblock_add_ctime(), BKE_keyblock_copy_settings(), BKE_keyblock_move(), setkeys(), and shape_key_retime_exec().

◆ prev

struct KeyBlock * KeyBlock::prev

Definition at line 25 of file DNA_key_types.h.

Referenced by BKE_key_sort(), and BKE_keyblock_move().

◆ relative

short KeyBlock::relative

relative == 0 means first key is reference, otherwise the index of Key->blocks

Definition at line 41 of file DNA_key_types.h.

Referenced by BKE_keyblock_copy_settings(), BKE_keyblock_is_basis(), BKE_keyblock_move(), ED_mesh_join_objects_exec(), edbm_blend_from_shape_exec(), key_evaluate_relative(), and SCULPT_vertcos_to_key().

◆ slidermax

float KeyBlock::slidermax

◆ slidermin

float KeyBlock::slidermin

ranges, for RNA and UI only to clamp 'curval'

Definition at line 57 of file DNA_key_types.h.

Referenced by BKE_keyblock_add(), BKE_keyblock_copy_settings(), and blo_do_versions_250().

◆ totelem

int KeyBlock::totelem

◆ type

short KeyBlock::type

Interpolation type (Key->type == KEY_NORMAL) only.

Definition at line 37 of file DNA_key_types.h.

Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().

◆ uid

int KeyBlock::uid

for meshes only, match the unique number with the customdata layer

Definition at line 47 of file DNA_key_types.h.

Referenced by add_shapekey_layers(), BKE_keyblock_add(), BKE_mesh_nomain_to_mesh(), BM_mesh_bm_from_me(), bm_to_mesh_shape(), bm_to_mesh_shape_layer_index_from_kb(), and shapekey_layers_to_keyblocks().

◆ vgroup

char KeyBlock::vgroup[64]

MAX_VGROUP_NAME (optional vertex group), array gets allocated into 'weights' when set

Definition at line 54 of file DNA_key_types.h.

Referenced by BKE_key_evaluate_object_ex(), BKE_keyblock_copy_settings(), and keyblock_get_per_block_weights().


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