DriverTarget(bpy_struct)
base class — bpy_struct
- class bpy.types.DriverTarget(bpy_struct)
Source of input values for driver variables
- bone_target
Name of PoseBone to use as target (default “”, never None)
- Type:
str
- context_property
Type of a context-dependent data-block to access property from (default
'ACTIVE_SCENE')ACTIVE_SCENEActive Scene – Currently evaluating scene.ACTIVE_VIEW_LAYERActive View Layer – Currently evaluating view layer.
- Type:
Literal[‘ACTIVE_SCENE’, ‘ACTIVE_VIEW_LAYER’]
- data_path
RNA Path (from ID-block) to property used (default “”, never None)
- Type:
str
- fallback_value
The value to use if the data path cannot be resolved (in [-inf, inf], default 0.0)
- Type:
float
- id
ID-block that the specific property used can be found from (id_type property must be set first)
- Type:
- id_type
Type of ID-block that can be used (default
'OBJECT')- Type:
Literal[Id Type Items]
- is_fallback_used
Indicates that the most recent variable evaluation used the fallback value (default False, readonly)
- Type:
bool
- rotation_mode
Mode for calculating rotation channel values (default
'AUTO')- Type:
Literal[Driver Target Rotation Mode Items]
- transform_space
Space in which transforms are used (default
'WORLD_SPACE')WORLD_SPACEWorld Space – Transforms include effects of parenting/restpose and constraints.TRANSFORM_SPACETransform Space – Transforms don’t include parenting/restpose or constraints.LOCAL_SPACELocal Space – Transforms include effects of constraints but not parenting/restpose.
- Type:
Literal[‘WORLD_SPACE’, ‘TRANSFORM_SPACE’, ‘LOCAL_SPACE’]
- transform_type
Driver variable type (default
'LOC_X')- Type:
Literal[‘LOC_X’, ‘LOC_Y’, ‘LOC_Z’, ‘ROT_X’, ‘ROT_Y’, ‘ROT_Z’, ‘ROT_W’, ‘SCALE_X’, ‘SCALE_Y’, ‘SCALE_Z’, ‘SCALE_AVG’]
- use_fallback_value
Use the fallback value if the data path cannot be resolved, instead of failing to evaluate the driver (default False)
- Type:
bool
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type