|
Blender V4.5
|
#include <DNA_key_types.h>
Public Attributes | |
| struct KeyBlock * | next |
| struct KeyBlock * | prev |
| 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 |
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 25 of file DNA_key_types.h.
| char KeyBlock::_pad1[2] |
Definition at line 39 of file DNA_key_types.h.
| float KeyBlock::curval |
Influence (typically [0 - 1] but can be more), (Key::type == KEY_RELATIVE) only.
Definition at line 35 of file DNA_key_types.h.
Referenced by BKE_keyblock_copy_settings(), deform_matrices(), deform_matrices_EM(), blender::io::fbx::import_blend_shapes(), key_evaluate_relative(), and ArmatureImporter::make_shape_keys().
| void* KeyBlock::data |
Array of shape key values, size is (Key::elemsize * KeyBlock->totelem). E.g. meshes use float3.
Definition at line 53 of file DNA_key_types.h.
Referenced by BKE_editlattice_load(), BKE_keyblock_convert_from_curve(), BKE_keyblock_convert_from_lattice(), BKE_keyblock_convert_from_mesh(), BKE_keyblock_convert_to_curve(), BKE_keyblock_convert_to_lattice(), BKE_keyblock_convert_to_mesh(), BKE_keyblock_duplicate(), BKE_keyblock_update_from_curve(), BKE_keyblock_update_from_lattice(), BKE_keyblock_update_from_mesh(), BKE_mesh_nomain_to_meshkey(), BKE_object_shapekey_remove(), blo_do_versions_250(), BM_mesh_bm_from_me(), blender::io::usd::create_blend_shapes(), deform_verts(), ED_mesh_join_objects_exec(), blender::ed::sculpt_paint::ShapeKeyData::from_object(), blender::bke::get_orco_coords(), blender::io::fbx::import_blend_shapes(), blender::io::usd::import_blendshapes(), insert_curvekey(), insert_lattkey(), insert_meshkey(), join_mesh_single(), key_block_get_data(), key_evaluate_relative(), move_shapekey_layers_to_keyblocks(), blender::ed::object::object_shape_key_mirror(), sculpt_update_object(), shapekey_blend_write(), shapekey_copy_data(), blender::ed::sculpt_paint::undo::store_positions_mesh(), switch_endian_keyblock(), and um_arraystore_expand().
| short KeyBlock::flag |
Definition at line 44 of file DNA_key_types.h.
Referenced by acf_shapekey_setting_ptr(), BKE_key_evaluate_object_ex(), BKE_keyblock_duplicate(), click_select_channel_shapekey(), key_evaluate_relative(), make_new_animlistelem(), blender::ed::sculpt_paint::report_if_shape_key_is_locked(), blender::ed::object::shape_key_report_if_active_locked(), and blender::ed::object::shape_key_report_if_locked().
| char KeyBlock::name[64] |
Unique name, user assigned.
Definition at line 55 of file DNA_key_types.h.
Referenced by acf_shapekey_name(), acf_shapekey_name_prop(), BKE_keyblock_add(), BKE_keyblock_duplicate(), BM_mesh_bm_from_me(), blender::deg::RNANodeQuery::construct_node_identifier(), draw_selected_name(), edbm_blend_from_shape_exec(), GeometryExporter::export_key_mesh(), blender::io::fbx::import_blend_shape_full_weights(), blender::ed::sculpt_paint::undo::restore_active_shape_key(), and shapekey_adrcodes_to_paths().
| struct KeyBlock* KeyBlock::next |
Definition at line 26 of file DNA_key_types.h.
Referenced by BKE_key_sort(), 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_is_basis(), BKE_keyblock_move(), BM_mesh_bm_from_me(), bm_to_mesh_shape(), key_evaluate_relative(), keyblock_get_per_block_weights(), GeometryExporter::operator()(), setkeys(), shapekey_copy_data(), and um_arraystore_expand().
| 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 33 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().
| struct KeyBlock * KeyBlock::prev |
Definition at line 26 of file DNA_key_types.h.
Referenced by BKE_keyblock_move().
| short KeyBlock::relative |
relative == 0 means first key is reference, otherwise the index of Key::blocks.
Definition at line 42 of file DNA_key_types.h.
Referenced by BKE_keyblock_copy_settings(), BKE_keyblock_get_dependent_keys(), BKE_keyblock_is_basis(), BKE_keyblock_move(), ED_mesh_join_objects_exec(), edbm_blend_from_shape_exec(), and key_evaluate_relative().
| float KeyBlock::slidermax |
Definition at line 61 of file DNA_key_types.h.
Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().
| float KeyBlock::slidermin |
Ranges, for RNA and UI only to clamp 'curval'.
Definition at line 60 of file DNA_key_types.h.
Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().
| int KeyBlock::totelem |
Total number of items in the keyblock (compare with mesh/curve verts to check we match).
Definition at line 47 of file DNA_key_types.h.
Referenced by BKE_editlattice_load(), BKE_keyblock_convert_from_curve(), BKE_keyblock_convert_from_lattice(), BKE_keyblock_convert_from_mesh(), BKE_keyblock_convert_to_curve(), BKE_keyblock_convert_to_lattice(), BKE_keyblock_convert_to_mesh(), BKE_keyblock_duplicate(), BKE_keyblock_update_from_curve(), BKE_keyblock_update_from_lattice(), BKE_keyblock_update_from_mesh(), BKE_mesh_nomain_to_meshkey(), blo_do_versions_250(), BM_mesh_bm_from_me(), cp_key(), blender::io::usd::create_blend_shapes(), deform_matrices(), deform_matrices_EM(), do_key(), ED_mesh_join_objects_exec(), blender::ed::sculpt_paint::ShapeKeyData::from_object(), blender::bke::get_orco_coords(), blender::io::usd::get_shape_key_basis_mesh(), blender::io::usd::import_blendshapes(), insert_curvekey(), insert_lattkey(), insert_meshkey(), key_block_get_data(), key_evaluate_relative(), move_shapekey_layers_to_keyblocks(), blender::ed::object::object_shape_key_mirror(), shapekey_blend_write(), switch_endian_keyblock(), and um_arraystore_expand().
| short KeyBlock::type |
Interpolation type. Used for (Key::type == KEY_NORMAL) only (KeyInterpolationType).
Definition at line 38 of file DNA_key_types.h.
Referenced by BKE_keyblock_add(), and BKE_keyblock_copy_settings().
| int KeyBlock::uid |
For meshes only, match the unique number with the customdata layer.
Definition at line 49 of file DNA_key_types.h.
Referenced by BKE_keyblock_add(), BM_mesh_bm_from_me(), bm_to_mesh_shape(), bm_to_mesh_shape_layer_index_from_kb(), find_object_active_key_uid(), keyblock_ensure_from_uid(), and move_shapekey_layers_to_keyblocks().
| char KeyBlock::vgroup[64] |
Optional vertex group, array gets allocated into 'weights' when set.
Definition at line 57 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().