Blender  V3.3
Public Attributes | List of all members
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 400 of file DNA_anim_types.h.

Member Data Documentation

◆ curval

float DriverVar::curval

Result of previous evaluation.

Definition at line 420 of file DNA_anim_types.h.

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

◆ flag

short DriverVar::flag

Validation tags, etc. (eDriverVar_Flags).

Definition at line 418 of file DNA_anim_types.h.

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

◆ 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 407 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

struct DriverVar* DriverVar::next

◆ num_targets

char DriverVar::num_targets

Number of targets actually used by this variable.

Definition at line 413 of file DNA_anim_types.h.

Referenced by driver_change_variable_type().

◆ prev

struct DriverVar * DriverVar::prev

Definition at line 401 of file DNA_anim_types.h.

Referenced by evaluate_driver_min_max().

◆ targets

DriverTarget DriverVar::targets[8]

◆ type

char DriverVar::type

Type of driver variable (eDriverVar_Types).

Definition at line 415 of file DNA_anim_types.h.

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


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