I have typical 3 chain IKFK bones, select the deformation bones, and run this script:
for each in $ do( local DEF_name=each.name local IK_name=substituteString DEF_name "DEF_" "IK_" local FK_name=substituteString DEF_name "DEF_" "FK_" local DEFobj=execute ("$" + DEF_name) local IKobj=execute ("$" +IK_name ) local FKobj=execute ("$" + DEF_name) local rc = orientation_constraint() rc.appendTarget FKobj 50.0 rc.appendTarget IKobj 50.0 DEFobj.rotation.controller = Rotation_list() DEFobj.rotation.controller.available = rc --this seems to be the problem )
get this error:
-- Unable to convert: Controller:Orientation_Constraint to type: Quaternion
I am able use mxs to to completely replace the list with an orientation constraint, but that is not what I wish to do, as subsequent scripts will break.