Blender V4.3
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 21 of file DNA_key_types.h.

Member Data Documentation

◆ _pad1

char KeyBlock::_pad1[2]

Definition at line 35 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 31 of file DNA_key_types.h.

Referenced by BKE_keyblock_copy_settings(), deform_matrices(), deform_matrices_EM(), key_evaluate_relative(), and ArmatureImporter::make_shape_keys().

◆ data

◆ flag

◆ name

◆ 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 29 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(), and setkeys().

◆ prev

struct KeyBlock * KeyBlock::prev

Definition at line 22 of file DNA_key_types.h.

Referenced by BKE_keyblock_move().

◆ relative

short KeyBlock::relative

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

Definition at line 38 of file DNA_key_types.h.

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

◆ slidermax

float KeyBlock::slidermax

Definition at line 55 of file DNA_key_types.h.

Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().

◆ slidermin

float KeyBlock::slidermin

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

Definition at line 54 of file DNA_key_types.h.

Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().

◆ totelem

◆ type

short KeyBlock::type

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

Definition at line 34 of file DNA_key_types.h.

Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().

◆ uid

int KeyBlock::uid

◆ vgroup

char KeyBlock::vgroup[64]

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

Definition at line 51 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: