Blender V5.0
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

The struct that holds the data for an individual Shape Key. Depending on which object owns the Key, the contained data type can vary (see void *data;).

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

◆ data

◆ flag

◆ name

◆ next

◆ pos

float KeyBlock::pos

A point in time used in case of (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(), and setkeys().

◆ prev

struct KeyBlock * KeyBlock::prev

Definition at line 25 of file DNA_key_types.h.

Referenced by BKE_keyblock_move().

◆ relative

◆ slidermax

float KeyBlock::slidermax

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

Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().

◆ totelem

◆ type

short KeyBlock::type

Interpolation type. Used for (Key::type == KEY_NORMAL) only (KeyInterpolationType).

Definition at line 37 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]

Optional vertex group, array gets allocated into 'weights' when set.

Definition at line 56 of file DNA_key_types.h.

Referenced by BKE_key_evaluate_object_ex(), BKE_keyblock_copy_settings(), blender::io::fbx::import_blend_shape_full_weights(), and keyblock_get_per_block_weights().


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