There are many different aspects of SDK that can form different effects in animation. The two main ones are Object to Object SDK and Control to Object SDK.
OBJECT TO OBJECT SDK ANIMATION
| In Figure 4, you see my scene: a mechanical arm with a gun attached to the end. The arm is in 3 segments seperated by cylindrical "joints." | ![]() |
| Create a locator and place it near the arm (Create > Locator). With the Locator selected, open the Channel Control (Figure 5, Window > General Editors > Channel Control). | ![]() |
| In the Channel Control, you'll see two sections: Keyable and Non-Keyable. Select all of the Locator's channels and click on the Move>> button. It'll put all of the channels into the Non-Keyable section. Next, with the Locator still selected, add a custom attribute (Modify > Add Attribute). As in Figure 6, in the Add Attribute window, give the Attribute a name. I used "Extend." Make sure Make Attribute Keyable is checked and the Data Type is "Float." In the Min, Max, and Default values, put 0, 10, and 0. This makes the attribute only range between 0 and 10 with 0 being the default starting point. Click "OK." | ![]() |
| As in Figure 7, you should have only the Extend attribute in you Channel Box for the Locator. | ![]() |
| Now, for the scene you downloaded, I've already taken the liberty to create a hierarchy for the gun arm (Figure 8). Rotating Join1 will rotate the entire arm, rotating Joint2 will only rotate that portion of the arm, and so on. Now, let's set up the SDK for the extend. In the SDK window ([Animation] Animate > Set Driven Key > Set > Options), load the locator as Driver and Joint1, Joint2, and Joint3 as Driven. In the SDK channel display (Figure 9), select "Extend" for the locator, and for all 3 joints, select Rotate Z. With the Extend attribute at 0 and all of the Rotate Z attributes of the gun at their original position, click the "Key" button. | ![]() ![]() |
| Now, raise the Extend attribute for the locator to 10 and rotate each joint on the Z Axis to the position you want the gun to extend to (Figure 10). Click the Key button. | ![]() |
| If everything was done correctly, then as you slide the Locator attribute from 0-10, the arm will extend. |