Orientation Constraint with "Keep intial Offset"

I am in a bit of a bind. I am writing a script that takes an existing rig controls and hooks it up to an existing rig. Problem is that whoever set up the initial rig, did not align anything. They used "Keep Initial Offset" when adding targets to to eliminate the flipping that occurs when two objects are not aligned. The problem is when I add the orientation constraint in maxscript, the controlled object flips. If I align the objects in my script the wrong axis is accessed when I exercise the controls. I see no option in maxscript to flag "Keep Initial Offset" when adding Orientation Constraint. Is there a scriptable option to do this without having to re-rig the whole character? Thanks.

neilford

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tronotrond's picture

Keep offset

After you've added the orientation constraint to the object this should enable the keep initial offset

$.rotation.controller.relative = on

Hope it helps :)

neilford's picture

Thanks.

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.