Swivel angle of an HIK handle as an input for a float expression
Hi again Max folks. I almost have this spine done, but I am stuck on one last thing. I am trying to use the swivel angle of an HIK handle as an input for a float expression, but I can't find the correct syntax. Here is an example of what I have so far.
addIndex = sp + 1
splineIkInput[sp].transform.controller.swivelAngle.controller = Float_Expression ()
splineFloatExpression = "(midSwvl + hipCtrl) / 2"
splineIkInput[sp].transform.controller.swivelAngle.controller.AddScalarTarget"hipCtrl" splineCtlInput[1].rotation.controller.Z_Rotation.controller
splineIkInput[sp].transform.controller.swivelAngle.controller.AddScalarTarget"midSwvl" ( Stuck HERE)
splineIkInput[sp].transform.controller.swivelAngle.controller.setExpression splineFloatExpression
Comments
More info
in this line...
splineIkInput[sp].transform.controller.swivelAngle.controller.AddScalarTarget"midSwvl" ( Stuck HERE)
I meant to give a little more info...
splineIkInput[sp].transform.controller.swivelAngle.controller.AddScalarTarget"midSwvl" splineIkInput[3].transform.controller.swivelAngle
The problem is that max seems to get the current swivel angle value, not the actual controller.
-- Runtime error: IExprCtrl::AddScalarTarget - Target needs to be controller or subAnim, got: 0.0