Data Binding For Character Rigging

So it took me a long while to figure this one out - but I think it may be helpful to other character animators out there.

Here was the problem:
I’ve rigged a character head to follow the cursor the head/eyes animated on x/y and was connected to a cursor via the joystick handle. - the regular setup for these kind of things. Then I wanted to emphasize the head movement and wanted to add a tilt to the head so that it tilts up or down depending on the cursor position - but one obstacle what in the way - the tilt angle reverse depending on where the cursor is positioned - right of the head or left of the head - and I needed to blend it so that the tilt angle is 0 when the cursor is centered with the head…

Solution using data binding:

I created three number inputs in the view model that is bound to the artboard:
X Head Track Value, Y Head Track Value, Tilt Input



for X/Y Head Track Values I’ve pushed the X/Y values of the tracked cursor to the view model inputs and used a range map converter on the values so i got normalized values from -100 to 100. So I mapped the width/height of the artboard (in my case 0-2560 and 0-1440) to the normalized (-100 to 100) range


then I’ve added an a Property Group with one number field that I bound to push its calculation to TiltInput

and I’ve added the following Converter Group to it:
converter 1 - formula: X Head Track Value * Y Head Track Value (inputs from the view model - you do it by adding a number to a formula and then binding this number to the view model input)
converter 2 - Range map: min -10000 max 10000 to min 100 max -100 (its important to reverse the values in the output portion)

Then I’ve created two timelines Tilt Pos and Tilt Neg - each with one keyframe on layer used for tilting the head: -10 degrees for Neg and 10 degrees for Pos



In the state machine I created a “Tilt” layer where I created a blend state between Min Tilt and Max Tilt using view model’s TiltInput as the input and the range for the timelines of -100 to 100




And this dynamically adjust the tilt angle of the head depending on the cursor’s position