PythonConstraint(Constraint)

base classes — bpy_struct, Constraint

class bpy.types.PythonConstraint(Constraint)

Use Python script for constraint evaluation

has_script_error

The linked Python script has thrown an error

Type:boolean, default False, (readonly)
target_count

Usually only 1-3 are needed

Type:int in [-inf, inf], default 0
targets

Target Objects

Type:bpy_prop_collection of ConstraintTarget, (readonly)
text

The text object that contains the Python script

Type:Text
use_targets

Use the targets indicated in the constraint panel

Type:boolean, default False
classmethod bl_rna_get_subclass(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The RNA type or default when not found.
Return type:bpy.types.Struct subclass
classmethod bl_rna_get_subclass_py(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The class or default when not found.
Return type:type

Inherited Properties

Inherited Functions