Blender V5.3
fcurve_driver.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_constraint_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_alloca.hh"
#include "BLI_expr_pylike_eval.hh"
#include "BLI_listbase.hh"
#include "BLI_math_base_safe.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_mutex.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_action.hh"
#include "BKE_animsys.hh"
#include "BKE_armature.hh"
#include "BKE_constraint.h"
#include "BKE_fcurve_driver.h"
#include "BKE_global.hh"
#include "BKE_object.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "atomic_ops.h"
#include "CLG_log.h"
#include "DEG_depsgraph_query.hh"
#include <algorithm>
#include <cstring>

Go to the source code of this file.

Classes

struct  blender::DriverVarTypeInfo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

Driver Variables
#define BEGIN_DVAR_TYPEDEF(type)
#define END_DVAR_TYPEDEF   }

Functions

Driver Target Utilities
static DriverTargetContext blender::driver_target_context_from_animation_context (const AnimationEvalContext *anim_eval_context)
static bool blender::driver_get_target_context_property (const DriverTargetContext *driver_target_context, DriverTarget *dtar, PointerRNA *r_property_ptr)
bool blender::driver_get_target_property (const DriverTargetContext *driver_target_context, struct DriverVar *dvar, struct DriverTarget *dtar, struct PointerRNA *r_prop)
static bool blender::dtar_try_use_fallback (DriverTarget *dtar)
static float blender::dtar_get_prop_val (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, DriverVar *dvar, DriverTarget *dtar)
eDriverVariablePropertyResult blender::driver_get_variable_property (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, DriverVar *dvar, DriverTarget *dtar, PointerRNA *r_ptr, PropertyRNA **r_prop, int *r_index)
static short blender::driver_check_valid_targets (ChannelDriver *driver, DriverVar *dvar)
Driver Variable Utilities
static float blender::dvar_eval_singleProp (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, DriverVar *dvar)
static float blender::dvar_eval_rotDiff (const AnimationEvalContext *, ChannelDriver *driver, DriverVar *dvar)
static float blender::dvar_eval_locDiff (const AnimationEvalContext *, ChannelDriver *driver, DriverVar *dvar)
static float blender::dvar_eval_transChan (const AnimationEvalContext *, ChannelDriver *driver, DriverVar *dvar)
static float blender::dvar_eval_contextProp (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, DriverVar *dvar)
static void blender::quaternion_to_angles (float quat[4], int channel)
void blender::BKE_driver_target_matrix_to_rot_channels (float mat[4][4], int auto_order, int rotation_mode, int channel, bool angles, float r_buf[4])
Driver API
void blender::driver_free_variable (ListBaseT< DriverVar > *variables, struct DriverVar *dvar)
void blender::driver_free_variable_ex (struct ChannelDriver *driver, struct DriverVar *dvar)
void blender::driver_variables_copy (ListBaseT< DriverVar > *dst_vars, const ListBaseT< DriverVar > *src_vars)
void blender::driver_change_variable_type (struct DriverVar *dvar, eDriverVar_Types type)
void blender::driver_variable_name_validate (struct DriverVar *dvar)
void blender::driver_variable_unique_name (struct DriverVar *dvar)
struct DriverVar * blender::driver_add_new_variable (struct ChannelDriver *driver)
void blender::fcurve_free_driver (struct FCurve *fcu)
ChannelDriver * blender::fcurve_copy_driver (const ChannelDriver *driver)
Driver Evaluation
float blender::driver_get_variable_value (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, DriverVar *dvar)
static void blender::evaluate_driver_sum (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver)
static void blender::evaluate_driver_min_max (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver)
static void blender::evaluate_driver_python (PathResolvedRNA *anim_rna, ChannelDriver *driver, ChannelDriver *driver_orig, const AnimationEvalContext *anim_eval_context)
float blender::evaluate_driver (PathResolvedRNA *anim_rna, ChannelDriver *driver, ChannelDriver *driver_orig, const AnimationEvalContext *anim_eval_context)

Variables

static CLG_LogRef blender::LOG = {"anim.fcurve"}

Driver Expression Evaluation

enum  { blender::VAR_INDEX_FRAME = 0 , blender::VAR_INDEX_CUSTOM }
static ExprPyLike_Parsed * blender::driver_compile_simple_expr_impl (ChannelDriver *driver)
static bool blender::driver_check_simple_expr_depends_on_time (const ExprPyLike_Parsed *expr)
static bool blender::driver_evaluate_simple_expr (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, ExprPyLike_Parsed *expr, float *result, float time)
static bool blender::driver_compile_simple_expr (ChannelDriver *driver)
static bool blender::driver_try_evaluate_simple_expr (const AnimationEvalContext *anim_eval_context, ChannelDriver *driver, ChannelDriver *driver_orig, float *result, float time)
bool blender::BKE_driver_has_simple_expression (struct ChannelDriver *driver)
static bool blender::python_driver_exression_depends_on_time (const char *expression)
bool blender::BKE_driver_expression_depends_on_time (struct ChannelDriver *driver)
void blender::BKE_driver_invalidate_expression (struct ChannelDriver *driver, bool expr_changed, bool varname_changed)

Driver Variable Type Info

static DriverVarTypeInfo blender::dvar_types [MAX_DVAR_TYPES]
static const DriverVarTypeInfo * blender::get_dvar_typeinfo (eDriverVar_Types type)

Macro Definition Documentation

◆ BEGIN_DVAR_TYPEDEF

#define BEGIN_DVAR_TYPEDEF ( type)
Value:
{

Definition at line 81 of file fcurve_driver.cc.

◆ END_DVAR_TYPEDEF

#define END_DVAR_TYPEDEF   }

Definition at line 84 of file fcurve_driver.cc.