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

Inherited Properties

Inherited Functions

Previous topic

PropertySensor(Sensor)

Next topic

PythonController(Controller)