Blender V4.3
DriverVar Struct Reference

#include <DNA_anim_types.h>

Public Attributes

struct DriverVarnext
 
struct DriverVarprev
 
char name [64]
 
DriverTarget targets [8]
 
char num_targets
 
char type
 
short flag
 
float curval
 

Detailed Description

Driver Variable (dvar)

A 'variable' for use as an input for the driver evaluation. Defines a way of accessing some channel to use, that can be referred to in the expression as a variable, thus simplifying expressions and also Depsgraph building.

Definition at line 423 of file DNA_anim_types.h.

Member Data Documentation

◆ curval

float DriverVar::curval

Result of previous evaluation.

Definition at line 443 of file DNA_anim_types.h.

Referenced by BKE_animsys_eval_driver(), BPY_driver_exec(), and driver_get_variable_value().

◆ flag

short DriverVar::flag

Validation tags, etc. (eDriverVar_Flags).

Definition at line 441 of file DNA_anim_types.h.

Referenced by BKE_animsys_eval_driver(), driver_dvar_invalid_name_query_cb(), and driver_variable_name_validate().

◆ name

char DriverVar::name[64]

Name of the variable to use in py-expression (must be valid python identifier) - MAX_ID_NAME - 2.

Definition at line 430 of file DNA_anim_types.h.

Referenced by ANIM_copy_as_driver(), BPY_driver_exec(), driver_add_new_variable(), driver_variable_name_validate(), and driver_variable_unique_name().

◆ next

◆ num_targets

char DriverVar::num_targets

Number of targets actually used by this variable.

Definition at line 436 of file DNA_anim_types.h.

Referenced by driver_change_variable_type().

◆ prev

struct DriverVar * DriverVar::prev

Definition at line 424 of file DNA_anim_types.h.

Referenced by ANIM_driver_vars_paste().

◆ targets

◆ type

char DriverVar::type

Type of driver variable (eDriverVar_Types).

Definition at line 438 of file DNA_anim_types.h.

Referenced by BPY_driver_exec(), driver_change_variable_type(), driver_get_target_property(), and driver_get_variable_value().


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