Blender V5.0
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 247 of file DNA_anim_types.h.

Member Data Documentation

◆ curval

float DriverVar::curval

Result of previous evaluation.

Definition at line 267 of file DNA_anim_types.h.

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

◆ flag

short DriverVar::flag

◆ name

char DriverVar::name[64]

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

Definition at line 254 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 260 of file DNA_anim_types.h.

Referenced by driver_change_variable_type().

◆ prev

struct DriverVar * DriverVar::prev

Definition at line 248 of file DNA_anim_types.h.

Referenced by ANIM_driver_vars_paste().

◆ targets

◆ type

char DriverVar::type

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