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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.