Ubuntu mint 13
Broken: 2.70, 2.70.4
So, simple code, need to apply(press) Set Inverse.
Run Script - go to 3D view - select bone(pose mode) - press "space" - write "constr" - choose "constr" and enjoy or not.
Constraint operators are not really that useful to be called from Python.
For this to work you need to set the constraint in the context...
context_py = bpy.context.copy() context_py["constraint"] = constraint bpy.ops.constraint.childof_set_inverse(context_py, constraint="Child Of", owner='BONE')
This was very hidden, so I have added a message blender/blender@bef1edb322 which now shows:
Traceback (most recent call last): File "/d/child_of2.blend/Text", line 21, in execute File "/src/blender/release/scripts/modules/bpy/ops.py", line 188, in __call__ ret = op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.constraint.childof_set_inverse.poll() Context missing 'constraint'
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?