Blender V5.3
drivers.cc File Reference
#include <cctype>
#include <cstdio>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "DNA_anim_types.h"
#include "BKE_anim_data.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "ED_keyframing.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "ANIM_fcurve.hh"
#include "anim_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

FCurve * blender::verify_driver_fcurve (ID *id, const char rna_path[], const int array_index, eDriverFCurveCreationMode creation_mode)
static int blender::add_driver_with_target (ReportList *, ID *dst_id, const char dst_path[], int dst_index, ID *src_id, const char src_path[], int src_index, PointerRNA *dst_ptr, PropertyRNA *dst_prop, PointerRNA *src_ptr, PropertyRNA *src_prop, eDriver_Types driver_type)
int blender::ANIM_add_driver_with_target (ReportList *reports, ID *dst_id, const char dst_path[], int dst_index, ID *src_id, const char src_path[], int src_index, short flag, eDriver_Types driver_type, short mapping_type)
 Main Driver Management API calls.
int blender::ANIM_add_driver (ReportList *reports, ID *id, const char rna_path[], int array_index, short flag, eDriver_Types type)
 Main Driver Management API calls.
bool blender::ANIM_remove_driver (ID *id, const char rna_path[], int array_index)
 Main Driver Management API calls.
void blender::ANIM_drivers_copybuf_free ()
bool blender::ANIM_driver_can_paste ()
bool blender::ANIM_copy_driver (ReportList *reports, ID *id, const char rna_path[], int array_index, short flag)
 Main Driver Management API calls.
bool blender::ANIM_paste_driver (ReportList *reports, ID *id, const char rna_path[], int array_index, short flag)
 Main Driver Management API calls.
void blender::ANIM_driver_vars_copybuf_free ()
bool blender::ANIM_driver_vars_can_paste ()
bool blender::ANIM_driver_vars_copy (ReportList *reports, FCurve *fcu)
bool blender::ANIM_driver_vars_paste (ReportList *reports, FCurve *fcu, bool replace)
void blender::ANIM_copy_as_driver (ID *target_id, const char *target_path, const char *var_name)
static const EnumPropertyItem * blender::driver_mapping_type_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static bool blender::add_driver_button_poll (bContext *C)
static wmOperatorStatus blender::add_driver_button_none (bContext *C, wmOperator *op, short mapping_type)
static wmOperatorStatus blender::add_driver_button_menu_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::add_driver_button_menu_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void UNUSED_FUNCTION blender::ANIM_OT_driver_button_add_menu (wmOperatorType *ot)
static wmOperatorStatus blender::add_driver_button_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus blender::remove_driver_button_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::edit_driver_button_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::copy_driver_button_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::paste_driver_button_exec (bContext *C, wmOperator *op)
Driver Management Operators for UI Buttons (RMB Menu)
void blender::ANIM_OT_driver_button_add (wmOperatorType *ot)
void blender::ANIM_OT_driver_button_remove (wmOperatorType *ot)
void blender::ANIM_OT_driver_button_edit (wmOperatorType *ot)
void blender::ANIM_OT_copy_driver_button (wmOperatorType *ot)
void blender::ANIM_OT_paste_driver_button (wmOperatorType *ot)

Variables

static FCurve * blender::channeldriver_copypaste_buf = nullptr
static ListBaseT< DriverVar > blender::driver_vars_copybuf = {nullptr, nullptr}

Drivers

const EnumPropertyItem blender::prop_driver_create_mapping_types []
FCurve * blender::alloc_driver_fcurve (const char rna_path[], const int array_index, eDriverFCurveCreationMode creation_mode)