Constraint offsets for CopyRot in Python


I’m working on a blender script and it’s going well except for 1 thing:

I can’t seem to get the functionality that the ‘Offset’ button in the Copy Rotation panel of the constraints list in Python.

The Python api allows pretty complete control over constraints, but there doesn’t seem to be a Constraint.Settings.OFFSET that works for Constraint.Type.COPYROT

I wouldn’t be surprised at all if this was just one of those things that hasn’t been exposed in the Python API, but I would like to know if that’s the case or if I’m missing something.


I had a look at my recent Blender compile from yesterday and also couldn’t find access to the Offset button value from Python. It might not be implemented yet (or I’m also missing something… I never worked with the constraints Python API yet).

If it isn’t, you could try to request it via the Blender bug tracker. I did it with two things I wanted to have access to recently and Ken Hughes implemented them very fastly, they are bug numbers 17476 and 17468, if you want to have a look.