0
$\begingroup$

I know how to set a constraint target via Python:

ob = bpy.data.objects["RightArmIKDataPoint"]
bpy.data.objects["MySkeleton"].pose.bones["RightArmIK"].constraints["MocapHook"].target = ob

However, I do not know how to unset this. I don't know what set the target to to be empty.

$\endgroup$

1 Answer 1

1
$\begingroup$

Simply set the the target property to None to clear the target field.

So in your example it would be:

...constraints["MocapHook"].target = None
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .