Blender  V2.93
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
 
void * data
 
char name [64]
 
char vgroup [64]
 
float slidermin
 
float slidermax
 

Detailed Description

Definition at line 40 of file DNA_key_types.h.

Member Data Documentation

◆ _pad1

char KeyBlock::_pad1[2]

Definition at line 54 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 50 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 48 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 41 of file DNA_key_types.h.

Referenced by BKE_key_sort(), and BKE_keyblock_move().

◆ relative

short KeyBlock::relative

◆ slidermax

float KeyBlock::slidermax

◆ slidermin

float KeyBlock::slidermin

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

Definition at line 73 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 53 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 63 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_mesh_bm_to_me(), 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 70 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: