views:

39

answers:

1

Is there any way to control a character made with Adobe CS4 Bone Tool via keyboard buttons? Its limbs are linked up by IK chains built by Bone Tool.

A: 

import fl.ik.*;

use

IKArmature IKBone IKJoint IKMover


addEventListener(keyboardEvent.KEY_DOWN, keyDownHandler);

function keyDownHandler(event:Event){

    if (event.keyCode == Keyboard.UP)
    {
      // do your magic with IKMover moveTo() method
    }

}

PeanutPower
Yes. IKMover works, but it only moves a bit. Seems constraints are set, but I haven't.
Shivan Raptor
try setting .rotationConstrained on the IKJoint to false or adjusting .rotationMin and .rotationMax
PeanutPower
Ok . It now works. Seems I need some trainings to control my bones.
Shivan Raptor