In Studio, it is easy to create keyframe animations to object and material properties. It is also possible to import animations from 3D creation tools such as Maya, 3D Studio Max, or Blender.
A keyframe is a a time marker that stores the value of a property. A keyframe can for example define the X position for an element. To create an animation, add another keyframe for the X position of the same element but in another position on the timeline. Studio will determine the correct X position for all frames between the two keyframes.
You can animate almost any object or material property. Animatable properties have the icon next to their name in the inspector palette.
To animate a property, follow the steps below:
- Ensure that autoset keyframes is toggled on.
- Select the element in the timeline palette, and set the desire starting value for the animated property.
- Move the playhead to the position in the timeline where you want the animation to start.
- Enable animation for the property by clicking the icon next to the property name in the inspector palette.
- Move the playhead to a new position, then change the value for the animated property.
Now that you have two keyframes in the timeline, you can preview the animation by dragging the playhead in the timeline palette, or by running the presentation in the Studio or the Viewer.
Moving the playhead to a new position, and then changing the value of a property with animation enabled will create a new keyframe.
As mentioned above, changing the value of an animated property will create a new keyframe if there isn't already a keyframe in the same position. This requires that Autoset Keyframes is toggled on.
To manually insert a keyframe, first place the playhead in the position where you want to create the keyframe. Next, do one of the following:
- Right-click the timebar of the animated element, next select Insert Keyframe from the context menu.
- Left-click the timebar of the animated element, next press S.
Keyframes will be created for all animated properties for the selected element.
To delete a keyframe, first select it (Ctrl + left mouse click to multi select). Next, do one of the following:
- Press Del.
- Right-click the keyframe and select Delete Selected Keyframe from the context menu.
To delete all keyframes of an element, do one of the following:
- Right-click the timebar and select Delete All Channel Keyframes.
- Left-click the timebar, next press Ctrl + Alt + K.
To move a keyframe to a desired position in the timeline, do one of the following:
- With the left mouse button, drag and drop it.
Note: Hold Shift while dragging to snap to timeline markers.
- Double-click the keyframe and enter the desired timeline position in the dialog window.
- Right-click the keyframe and select Set Keyframe Time. Next, enter the desired timeline position in the dialog window.
To change a property value for a keyframe, follow the steps below:
- Move the playhead to the keyframe, hold
Shiftto snap the playhead to the keyframe.
- Select the desired element in the timeline palette.
- In the inspector palette, change the value of the desired animated property.
To copy keyframes from one element to another, follow the steps below:
- Select the keyframe(s) to copy on an element.
- Right-click on one of the selected keyframes and select Copy Selected Keyframes from the context menu.
- Position the playhead at the time where the first keyframe should be placed.
- Right click on the time bar for the element and select Paste Keyframes from. the context menu.
As the playhead moves from one keyframe to the next, the Qt 3D Studio Runtime can perform linear interpolation, smooth interpolation, or a custom blending somewhere in-between. With linear interpolation the value changes at the same rate from one value to the next. With smooth interpolation the value starts off holding the previous keyframe value, accelerates towards the next keyframe value, and then decelerates to stop at the new value.
To set the interpolation, first select the keyframe(s) that you want to adjust, then right-click one of the selected keyframes, and from the context menu choose Set Interpolation. The Ease In setting controls how the value behaves as it approaches the keyframe and the Ease Out setting controls how the value behaves when leaving the keyframe.
Note: If you find that you are constantly setting your keyframes from Smooth to Linear, or vice-versa, you may wish to change the Default Interpolation setting for new keyframes in the Application Preferences.
You can import transform (scale/rotation/location) animations from 3D creation tools such as Maya, Blender, 3D Studio Max and Modo.
Read more in the Working with 3D Content section.
- The Timeline
The timeline palette provides direct access to all elements in your scene, and also gives you control over the animation and timing within a slide.
- Dynamic Keyframes
Dynamic keyframes are a powerful feature that allow you to smoothly interpolate between different animated values on different slides.
Available under certain Qt licenses.
Find out more.