|
Blender V5.3
|
#include <cstring>#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_cachefile_types.h"#include "DNA_camera_types.h"#include "DNA_curves_types.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_grease_pencil_types.h"#include "DNA_key_types.h"#include "DNA_lattice_types.h"#include "DNA_layer_types.h"#include "DNA_light_types.h"#include "DNA_lightprobe_types.h"#include "DNA_linestyle_types.h"#include "DNA_mask_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_movieclip_types.h"#include "DNA_node_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_particle_types.h"#include "DNA_pointcloud_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_sequence_types.h"#include "DNA_space_types.h"#include "DNA_speaker_types.h"#include "DNA_userdef_types.h"#include "DNA_volume_types.h"#include "DNA_world_types.h"#include "MEM_guardedalloc.h"#include "BLI_alloca.hh"#include "BLI_listbase.hh"#include "BLI_string.hh"#include "BLI_utildefines.hh"#include "BKE_action.hh"#include "BKE_anim_data.hh"#include "BKE_collection.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_fcurve_driver.h"#include "BKE_global.hh"#include "BKE_grease_pencil.hh"#include "BKE_key.hh"#include "BKE_layer.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_mask.hh"#include "BKE_material.hh"#include "BKE_modifier.hh"#include "BKE_node.hh"#include "BKE_node_runtime.hh"#include "ED_anim_api.hh"#include "SEQ_iterator.hh"#include "SEQ_modifier.hh"#include "SEQ_sequencer.hh"#include "SEQ_utils.hh"#include "ANIM_action.hh"#include "ANIM_armature.hh"#include "anim_intern.hh"Go to the source code of this file.
Classes | |
| struct | blender::tAnimFilterModifiersContext |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | BEGIN_ANIMFILTER_SUBCHANNELS(expanded_check) |
| #define | END_ANIMFILTER_SUBCHANNELS |
| #define | ANIMDATA_HAS_ACTION(id) |
| #define | ANIMDATA_HAS_DRIVERS(id) |
| #define | ANIMDATA_HAS_NLA(id) |
| #define | ANIMDATA_FILTER_CASES(id, adtOk, nlaOk, driversOk, nlaKeysOk, legacyActionOk, layeredActionOk) |
| #define | ANIMCHANNEL_NEW_CHANNEL_FULL(bmain, channel_data, channel_type, owner_id, fcurve_owner_id, ale_statement) |
| #define | ANIMCHANNEL_NEW_CHANNEL(bmain, channel_data, channel_type, owner_id, fcurve_owner_id) |
| #define | ANIMCHANNEL_ACTIVEOK(ale) |
| #define | ANIMCHANNEL_SELOK(test_func) |
| #define | ANIMCHANNEL_SELEDITOK(test_func) |
| #define ANIMCHANNEL_ACTIVEOK | ( | ale | ) |
Definition at line 613 of file anim_filter.cc.
Referenced by blender::animdata_filter_dopesheet_ob(), blender::animdata_filter_ds_cachefile(), blender::animdata_filter_ds_gpencil(), blender::animdata_filter_ds_keyanim(), blender::animdata_filter_ds_linestyle(), blender::animdata_filter_ds_material(), blender::animdata_filter_ds_movieclip(), blender::animdata_filter_ds_nodetree_group(), blender::animdata_filter_ds_obdata(), blender::animdata_filter_ds_particles(), blender::animdata_filter_ds_texture(), and blender::animdata_filter_ds_world().
| #define ANIMCHANNEL_NEW_CHANNEL | ( | bmain, | |
| channel_data, | |||
| channel_type, | |||
| owner_id, | |||
| fcurve_owner_id ) |
Definition at line 607 of file anim_filter.cc.
Referenced by blender::ANIM_animdata_filter(), blender::ANIM_animfilter_action_slot(), blender::animdata_filter_dopesheet_ob(), blender::animdata_filter_ds_cachefile(), blender::animdata_filter_ds_gpencil(), blender::animdata_filter_ds_keyanim(), blender::animdata_filter_ds_linestyle(), blender::animdata_filter_ds_material(), blender::animdata_filter_ds_movieclip(), blender::animdata_filter_ds_nodetree_group(), blender::animdata_filter_ds_obanim(), blender::animdata_filter_ds_obdata(), blender::animdata_filter_ds_particles(), blender::animdata_filter_ds_scene(), blender::animdata_filter_ds_texture(), blender::animdata_filter_ds_world(), blender::animdata_filter_gpencil_layers_data_legacy(), blender::animdata_filter_grease_pencil_data(), blender::animdata_filter_grease_pencil_layer(), blender::animdata_filter_grease_pencil_layer_node_recursive(), blender::animdata_filter_mask(), blender::animdata_filter_mask_data(), blender::animdata_filter_shapekey(), blender::animfilter_block_data(), blender::animfilter_fcurves(), blender::animfilter_nla(), and blender::animfilter_nla_controls().
| #define ANIMCHANNEL_NEW_CHANNEL_FULL | ( | bmain, | |
| channel_data, | |||
| channel_type, | |||
| owner_id, | |||
| fcurve_owner_id, | |||
| ale_statement ) |
Add a new animation channel, taking into account the "peek" flag, which is used to just check whether any channels will be added (but without needing them to actually get created).
Definition at line 591 of file anim_filter.cc.
Referenced by blender::animfilter_act_group(), blender::animfilter_fcurves(), and blender::animfilter_nla().
| #define ANIMCHANNEL_SELEDITOK | ( | test_func | ) |
Quick macro to test if an anim-channel (F-Curve) is selected ok for editing purposes
checks here work as follows: 1) SELEDIT off - don't need to consider the implications of this option. 2) FOREDIT off - we're not considering editing, so channel is ok still. 3) test_func (i.e. selection test) - only if selected, this test will pass.
Definition at line 632 of file anim_filter.cc.
Referenced by blender::animfilter_fcurve_next().
| #define ANIMCHANNEL_SELOK | ( | test_func | ) |
Definition at line 618 of file anim_filter.cc.
Referenced by blender::animdata_filter_dopesheet_ob(), blender::animdata_filter_gpencil_layers_data_legacy(), blender::animdata_filter_grease_pencil_layer(), blender::animdata_filter_mask_data(), blender::animdata_filter_shapekey(), blender::animfilter_act_group(), blender::animfilter_block_data(), blender::animfilter_fcurve_next(), and blender::animfilter_nla().
| #define ANIMDATA_FILTER_CASES | ( | id, | |
| adtOk, | |||
| nlaOk, | |||
| driversOk, | |||
| nlaKeysOk, | |||
| legacyActionOk, | |||
| layeredActionOk ) |
Quick macro to test for all three above usability tests, performing the appropriate provided action for each when the AnimData context is appropriate.
Priority order for this goes (most important, to least): AnimData blocks, NLA, Drivers, Keyframes.
For this to work correctly, a standard set of data needs to be available within the scope that this
Gets called in:
The checks for the various cases are as follows: 0) top level: checks for animdata and also that all the F-Curves for the block will be visible 1) animdata check: for filtering animdata blocks only 2A) nla tracks: include animdata block's data as there are NLA tracks+strips there 2B) actions to convert to nla: include animdata block's data as there is an action that can be converted to a new NLA strip, and the filtering options allow this 2C) allow non-animated data-blocks to be included so that data-blocks can be added 3) drivers: include drivers from animdata block (for Drivers mode in Graph Editor) 4A) nla strip keyframes: these are the per-strip controls for time and influence 4B) normal keyframes: only when there is an active action 4C) normal keyframes: only when there is an Animation assigned
Definition at line 547 of file anim_filter.cc.
Referenced by blender::animdata_filter_ds_obanim(), blender::animdata_filter_ds_scene(), and blender::animfilter_block_data().
| #define ANIMDATA_HAS_ACTION | ( | id | ) |
Definition at line 502 of file anim_filter.cc.
| #define ANIMDATA_HAS_DRIVERS | ( | id | ) |
Definition at line 505 of file anim_filter.cc.
| #define ANIMDATA_HAS_NLA | ( | id | ) |
Definition at line 508 of file anim_filter.cc.
| #define BEGIN_ANIMFILTER_SUBCHANNELS | ( | expanded_check | ) |
Definition at line 475 of file anim_filter.cc.
Referenced by blender::animdata_filter_dopesheet_ob(), blender::animdata_filter_dopesheet_scene(), blender::animdata_filter_ds_cachefile(), blender::animdata_filter_ds_gpencil(), blender::animdata_filter_ds_keyanim(), blender::animdata_filter_ds_linestyle(), blender::animdata_filter_ds_material(), blender::animdata_filter_ds_movieclip(), blender::animdata_filter_ds_nodetree_group(), blender::animdata_filter_ds_obanim(), blender::animdata_filter_ds_obdata(), blender::animdata_filter_ds_particles(), blender::animdata_filter_ds_scene(), blender::animdata_filter_ds_texture(), blender::animdata_filter_ds_world(), blender::animdata_filter_grease_pencil_data(), blender::animdata_filter_grease_pencil_layer_node_recursive(), blender::animdata_filter_mask(), blender::animfilter_act_group(), and blender::animfilter_nla_controls().
| #define END_ANIMFILTER_SUBCHANNELS |
Definition at line 493 of file anim_filter.cc.
Referenced by blender::animdata_filter_dopesheet_ob(), blender::animdata_filter_ds_cachefile(), blender::animdata_filter_ds_gpencil(), blender::animdata_filter_ds_keyanim(), blender::animdata_filter_ds_linestyle(), blender::animdata_filter_ds_material(), blender::animdata_filter_ds_movieclip(), blender::animdata_filter_ds_nodetree_group(), blender::animdata_filter_ds_obanim(), blender::animdata_filter_ds_obdata(), blender::animdata_filter_ds_particles(), blender::animdata_filter_ds_scene(), blender::animdata_filter_ds_texture(), blender::animdata_filter_ds_world(), blender::animdata_filter_grease_pencil_data(), blender::animdata_filter_grease_pencil_layer_node_recursive(), blender::animdata_filter_mask(), blender::animfilter_act_group(), and blender::animfilter_nla_controls().