Run IK
This feature and the Skeletons option is available in Alias PowerAnimator and AutoStudio, and is a purchasable Advanced Animation for Studio option
Purpose
To create skeleton animation based on the animated constraints on a skeleton.
How to Use
- Create a skeleton using Objects
Draw skeleton.
- Attach constraints to various joints in the skeleton using Object Edit
Add constraint.
- Animate the constraint objects using any of the Alias animation tools.
- Set up your skeleton to be in the configuration that you want it to be in for the first frame of animation.
- Pick the root of the skeleton, and select Run IK.
You will see the skeleton animate through all the frames of the constraint animation. At the end of this operation, the skeleton is animated using its constraints.
Run IK Options
To view or change options, select Run IK-
to open the Run IK Options box.

Skeletons
- All the Run IK simulation will run on all root level skeletons that are constrained to animating objects, regardless of what is currently picked.
A root level skeleton is defined as a joint node with no ancestors that are joint nodes. This joint node and all joint nodes below it make up a skeleton.
- Active the Run IK simulation will run on all joint nodes that are currently selected.
The skeletons are defined from the picked joint node and all joint nodes below it. Anything that is picked that is not a joint node will be ignored.
Frame Range
- All the default frame range ALL is the range of animation of all the constraints that are attached to the picked skeletons.
- Current the IK simulation will start at the current frame, and will keep running until you press the Esc key to stop the Run IK simulation.
- Option Window click this button to expand the Run IK Options window to display the following.

The frame range in which to run the IK simulation is specified by the Start and End values.
Start Frame/End Frame
These values define the frame range in which to run the IK simulation if Option Window is selected in the Frame Range option.
Start Frame
Specifies the frame at which to start running the IK simulation if Option Window is selected in the Frame Range option.
End Frame
Specifies the frame at which to end running the IK simulation if Option Window is selected in the Frame Range option.
By Frames
This is the increment at which keyframes will be set in the skeleton during the IK simulation. If the Simplify option is ON, some of these keyframes may be removed after the simulation is complete.
Sample Rate
This is the increment at which the Run IK simulation will be run. For example, if the Sample value is 0.2, and the By value is 1.0, then the IK simulation will run for 5 frames before setting a keyframe in the skeleton. Since the constraint animation is being sampled at different frame values, the inverse kinematics may cause a jump from one frame to another. Choosing a smaller Sample value ensures that the inverse kinematics solution is smoother, while only generating keyframes at the By value increments.
Simplify
If the Simplify option is toggled ON (indicated by a check-mark), all the animation curves that were created in the skeleton during the IK simulation are simplified after the simulation to remove as many keyframes as possible within the given tolerance while still preserving the shape of the original curve.
Also, the Run IK Options box expands to include the following.

Translation/Rotation Tol
These tolerance values are used in simplifying the curve. A tolerance specifies how much the simplified curve may differ from the unsimplified curve at each keyframe. You can specify different tolerances for curves that are animating rotation joints versus those animating translation joints. For example, the default tolerance for rotation is higher than that of translation because a difference in one degree of rotation is usually less noticeable than a difference in one unit of translation.
Redraw
If the Redraw option is toggled ON (indicated by a check mark), each time a frame is computed in which keyframes will be set, the skeleton(s) is redrawn in its configuration at that frame. This gives instant feedback for the result of the Run IK simulation.
Tip: If a large model is being simulated for many frames, redrawing at every By value could slow down the simulation too much. By toggling Redraw off, the skeleton(s) is only redrawn at the beginning and end of the simulation.
With Single Chain
This option translates any single-chain IK animation information into rotational information.


Disable Single Chain
This toggle appears when With Single Chain is selected. This option turns off the single-chain IK handles after Run IK is applied. To turn the single-chain IK chains beack on, you can do so in the Information Window.
See Run IK in the Animation section of the Alias Menu Book for more information on using the other Run IK options.
Animating IK
Character animation can be a very tedious process if animation is done by keyframing every joint in the character. Also, it is often difficult to get the desired results if the character is positioned by rotating each joint individually. Inverse kinematics allows you to position a character easily by pulling on any joint in the character's skeleton, and placing it exactly in the desired position (see Xform
IK drag).
Alias inverse kinematics is a full 3D implementation. This means that each joint in a skeleton can be rotated around any of the three X, Y and Z axes during the inverse kinematics computation. Because of this flexibility, it also means that there can be many solutions to the inverse kinematics computation. In other words, a skeleton chain could be dragged to the same point, but many alternate configurations for the chain could be found.
The following are three examples of the same four-link chain. In each example, the end-effector of the chain has been dragged to the same point, but the chain is in a different configuration.

Often the configuration of the skeleton that the inverse kinematics finds is not necessarily the desired configuration. Adding constraints to the joints in the skeleton helps reduce the number of possible solutions that the inverse kinematics can choose from. For example, in the following example, a point constraint has been added to the middle joint of the chain (using Object Edit
Add constraint). The inverse kinematics is now limited in its choice of solutions.

Constraints in Alias are just regular dag node objects. In the above example, the picked circles are circle primitives (see Objects
Primitives
Circle). Since constraint objects are just ordinary dag node objects, they can be manipulated using any of the modeling tools as a regular object. So for example, if you move the circle (using Xform
Move), the skeleton chain is updated so that the constraint on the joint using the circle is still met.
Since dag nodes are also animatable, the constraint objects can also be animated.For example, you could assign a motion path to the circle so that it animates along a curve (Anim
Set motion). At this point, if playback is invoked, the constraint object is animated along the motion path. The skeleton however, is not updated. To animate the skeleton using its constraints, use Run IK to generate the animation in the skeleton.
Run IK is used to create predictable and repeatable skeleton animation based on its constraints. Since the 3D inverse kinematics solution is usually not unique, the Run IK simulation generates one possible solution to the skeleton animation. Once the solution has been determined, it is captured by creating keyframe animation in the skeleton. This animation can then be previewed repeatedly to view the same skeleton animation.
The solution that the inverse kinematics generates for the skeleton animation will always be the same given the exact same starting conditions. For example, if you perform a Run IK with the exact same options in the option window, you start at the exact same frame with the same By values, and you ensure that the skeleton starts in the exact same configuration, the same animation will be generated. For this reason, it is important that you carefully choose what configuration the skeleton is in before you invoke Animation
Run IK.
The following shows two results of a four-link chain skeleton animation, using the same options, the same constraint animation, but in different starting configurations. The resulting animation is quite different.
The highlighted skeleton is in the configuration that the skeleton was in before Run IK was invoked. The unhighlighted skeletons show the solutions the inverse kinematics found for some of the animation frames.

If you are working on a very long skeleton/IK animation, then it is important that if you run the IK simulation on the first sequence, then later continue on the next sequence, that the transition between the two sequences remains smooth.
To ensure that this is the case, a viewframe on the skeleton is done at the starting frame, before the Run IK simulation begins. If the skeleton has no animation, this has no effect. However, if the skeleton was previously animated, this ensures that the skeleton will start in the position where it left off in from the last sequence.
Animating the skeleton and its constraint objects is an iterative process:
Hints and Tips
- As long as you don't change your skeleton model (add or remove joint nodes), change the lengths of the skeleton links, or add or remove a constraint, then you will not need to rerun the IK simulation for the whole range of animation. If you are just modifying animation around a certain frame, back up to a few keyframes before the frame you are modifying, and run the IK simulation from the Current frame onwards.
- After running the IK algorithm on your skeleton, you can look at the animation curves created on the skeleton in the Action Window. If you find that the animation curves appear very jerky and do not look very continuous, it could be that some of your weight values on skeleton constraints are too high. High weight values on constraints can cause the IK algorithm to become unstable.
To correct this problem, lower the values of your weights. You will probably want to keep the relative values of your weights. For example, if both feet of a skeleton are constrained with a weight of 100, and both wrists are constrained with a weight of 50, adjust the weights so that they maintain the relative weighting by making the feet constraint weights 2, and the wrist constraint weights 1.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.