Blender  V2.93
Macros | Functions
BKE_fcurve_driver.h File Reference
#include "DNA_curve_types.h"

Go to the source code of this file.

Macros

#define DRIVER_TARGETS_LOOPER_BEGIN(dvar)
 
#define DRIVER_TARGETS_USED_LOOPER_BEGIN(dvar)
 
#define DRIVER_TARGETS_LOOPER_END
 

Functions

void fcurve_free_driver (struct FCurve *fcu)
 
struct ChannelDriverfcurve_copy_driver (const struct ChannelDriver *driver)
 
void driver_variables_copy (struct ListBase *dst_vars, const struct ListBase *src_vars)
 
void 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])
 
void driver_free_variable (struct ListBase *variables, struct DriverVar *dvar)
 
void driver_free_variable_ex (struct ChannelDriver *driver, struct DriverVar *dvar)
 
void driver_change_variable_type (struct DriverVar *dvar, int type)
 
void driver_variable_name_validate (struct DriverVar *dvar)
 
struct DriverVardriver_add_new_variable (struct ChannelDriver *driver)
 
float driver_get_variable_value (struct ChannelDriver *driver, struct DriverVar *dvar)
 
bool driver_get_variable_property (struct ChannelDriver *driver, struct DriverTarget *dtar, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop, int *r_index)
 
bool BKE_driver_has_simple_expression (struct ChannelDriver *driver)
 
bool BKE_driver_expression_depends_on_time (struct ChannelDriver *driver)
 
void BKE_driver_invalidate_expression (struct ChannelDriver *driver, bool expr_changed, bool varname_changed)
 
float evaluate_driver (struct PathResolvedRNA *anim_rna, struct ChannelDriver *driver, struct ChannelDriver *driver_orig, const struct AnimationEvalContext *anim_eval_context)
 

Macro Definition Documentation

◆ DRIVER_TARGETS_LOOPER_BEGIN

#define DRIVER_TARGETS_LOOPER_BEGIN (   dvar)
Value:
{ \
DriverTarget *dtar = &dvar->targets[0]; \
int tarIndex = 0; \
for (; tarIndex < MAX_DRIVER_TARGETS; tarIndex++, dtar++)
#define MAX_DRIVER_TARGETS

Definition at line 49 of file BKE_fcurve_driver.h.

◆ DRIVER_TARGETS_LOOPER_END

#define DRIVER_TARGETS_LOOPER_END
Value:
} \
((void)0)

Definition at line 63 of file BKE_fcurve_driver.h.

◆ DRIVER_TARGETS_USED_LOOPER_BEGIN

#define DRIVER_TARGETS_USED_LOOPER_BEGIN (   dvar)
Value:
{ \
DriverTarget *dtar = &dvar->targets[0]; \
int tarIndex = 0; \
for (; tarIndex < dvar->num_targets; tarIndex++, dtar++)

Definition at line 56 of file BKE_fcurve_driver.h.

Function Documentation

◆ BKE_driver_expression_depends_on_time()

bool BKE_driver_expression_depends_on_time ( struct ChannelDriver driver)

◆ BKE_driver_has_simple_expression()

bool BKE_driver_has_simple_expression ( struct ChannelDriver driver)

◆ BKE_driver_invalidate_expression()

void BKE_driver_invalidate_expression ( struct ChannelDriver driver,
bool  expr_changed,
bool  varname_changed 
)

◆ BKE_driver_target_matrix_to_rot_channels()

void 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_add_new_variable()

struct DriverVar* driver_add_new_variable ( struct ChannelDriver driver)

◆ driver_change_variable_type()

void driver_change_variable_type ( struct DriverVar dvar,
int  type 
)

◆ driver_free_variable()

void driver_free_variable ( struct ListBase variables,
struct DriverVar dvar 
)

◆ driver_free_variable_ex()

void driver_free_variable_ex ( struct ChannelDriver driver,
struct DriverVar dvar 
)

◆ driver_get_variable_property()

bool driver_get_variable_property ( ChannelDriver driver,
DriverTarget dtar,
PointerRNA r_ptr,
PropertyRNA **  r_prop,
int *  r_index 
)

◆ driver_get_variable_value()

float driver_get_variable_value ( struct ChannelDriver driver,
struct DriverVar dvar 
)

◆ driver_variable_name_validate()

void driver_variable_name_validate ( struct DriverVar dvar)

◆ driver_variables_copy()

void driver_variables_copy ( struct ListBase dst_vars,
const struct ListBase src_vars 
)

◆ evaluate_driver()

float evaluate_driver ( struct PathResolvedRNA anim_rna,
struct ChannelDriver driver,
struct ChannelDriver driver_orig,
const struct AnimationEvalContext anim_eval_context 
)

◆ fcurve_copy_driver()

struct ChannelDriver* fcurve_copy_driver ( const struct ChannelDriver driver)

◆ fcurve_free_driver()

void fcurve_free_driver ( struct FCurve fcu)