Blender V5.3
blender::ChannelDriver Struct Reference

#include <DNA_anim_types.h>

Public Attributes

ListBaseT< DriverVar > variables = {nullptr, nullptr}
char expression [256] = ""
void * expr_comp = nullptr
struct ExprPyLike_Parsed * expr_simple = nullptr
float curval = 0
float influence = 0
eDriver_Types type = {}
eDriver_Flags flag = {}

Detailed Description

Channel Driver (i.e. Drivers / Expressions) (driver)

Channel Drivers are part of the dependency system, and are executed in addition to normal user-defined animation. They take the animation result of some channel(s), and use that (optionally combined with its own F-Curve for modification of results) to define the value of some setting semi-procedurally.

Drivers are stored as part of F-Curve data, so that the F-Curve's RNA-path settings (for storing what setting the driver will affect). The order in which they are stored defines the order that they're evaluated in. This order is set by the Depsgraph's sorting stuff.

Definition at line 308 of file DNA_anim_types.h.

Member Data Documentation

◆ curval

◆ expr_comp

void* blender::ChannelDriver::expr_comp = nullptr

PyObject - compiled expression, don't save this.

Definition at line 318 of file DNA_anim_types.h.

Referenced by blender::BKE_fcurve_blend_read_data(), blender::BPY_driver_exec(), blender::fcurve_copy_driver(), and blender::fcurve_free_driver().

◆ expr_simple

◆ expression

◆ flag

◆ influence

float blender::ChannelDriver::influence = 0

Influence of driver on result.

Definition at line 327 of file DNA_anim_types.h.

◆ type

◆ variables


The documentation for this struct was generated from the following file: