rotation script controller Help
This information will be useful in the future: I started scripting 4 weeks ago
So here´s my problem... Im using a rotation script controller replacing the Euler XYZ for a DummyA in order to make it rotate reacting to the difference between two other dummies (B and C)
I use something like this in the scriptcontroller:
dependsOn $DummyB $DummyC
$DummyB.rotation - $DummyC.rotation
and it works like a champ... but when i try to apply some math to that value it doesn´t seem to be working at all, like
($DummyB.rotation - $DummyC.rotation) * 0.5
which i tried in order to make it rotate half of that value
My problem is that I need to use that rotation and paste it to other Dummies so they rotate half the speed and less like "* 0.8" or "* 0.2"
If I do this with wire parameters it works perfectly even if i rotate the master (DummyC) more than 180 degrees. This was not possible with orientation constraints.
My problem is that I can´t use wire parameters since this dummies are inside and parented to different objects in the scene and i´m trying to avoind solving it with one extra slider in my rig.
What am I doing wrong?
I found the slerp function for quaternions but when i try to use it inside of my controller it doesn´t seem to work