I've got a problem with creating a 3 layer IK chain using DUIK.
I follow strictly this tutorial: https://vimeo.com/96444901
I create three shapes, pre-compose them, parent them, create a controller from the layer of a hand, then select all four layer in order hand-forearm-arm-controller and then in DUIK window I choose 3-Layer IK and then an error appears.
This project contains expression errors: error 1 of 3
Error at line 38 in property 'Rotation' of layer 4 ('arm Comp1') in comp 'Comp1'. invalid numeric result (divide by zero?)., an expression was disabled as a result of an error.
The 38 line in property 'Rotation' of layer 4 states:
var baseA = Math.acos(clamp(ikLength/(2*d4),-1,1));
What to do with it?
I'm trying to animate a character, but when I was doing it on an actual body layers, they separated completely after clicking on creater 3-Layer IK chain, so I decided to practise on simple shapes, but the error happens here.