DriverVariable(bpy_struct)

base class — bpy_struct

class bpy.types.DriverVariable(bpy_struct)

Variable from some source/target for driver relationship

is_name_valid

Is this a valid name for a driver variable (default True, readonly)

Type:

bool

name

Name to use in scripted expressions/functions (no spaces or dots are allowed, and must start with a letter) (default “”, never None)

Type:

str

targets

Sources of input data for evaluating this variable (default None, readonly)

Type:

bpy_prop_collection[DriverTarget]

type

Driver variable type (default 'SINGLE_PROP')

  • SINGLE_PROP Single Property – Use the value from some RNA property.

  • TRANSFORMS Transform Channel – Final transformation value of object or bone.

  • ROTATION_DIFF Rotational Difference – Use the angle between two bones.

  • LOC_DIFF Distance – Distance between two bones or objects.

  • CONTEXT_PROP Context Property – Use the value from some RNA property within the current evaluation context.

Type:

Literal[‘SINGLE_PROP’, ‘TRANSFORMS’, ‘ROTATION_DIFF’, ‘LOC_DIFF’, ‘CONTEXT_PROP’]

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References