This video is part of the official comprehensive video course about Duik Ángela
The animation library is a quick and easy way to store, manage and share reusable animations.
It’s both a panel in Duik, and a folder on your disk, so that it can easily be synchronized[^sync] and shared.
You can use the field on the top of the panel to quickly search for animations and navigate in the caterogies.
- Select the layers receiving the animation.
- Select an animation in the list.
- Click the apply button to apply the animation on the current layers at the current time.
[Shift] + [Click]the button to access additional options.
You can click the folder icon to open the folder where the library is stored, or
[Alt] + [Click] it to tell Duik to use another folder. If a library is already available in the new folder, it will be automatically loaded; this is an easy way to keep multiple libraries on the same system.
By default, the library is in the
Duik subfolder of your documents folder, which is where settings, notes, and translations are also stored by default.
With the next buttons, you can change how the items are sorted in the panel, and refresh the library if you’ve manually added new files or if something is missing in the list.
For now (2023) the animations are applied as is, which makes it necessary to manually adjust the position and other spatial values when transfering an animation from a character to another with different proportions. Other properties should work fine though.
This is going to change though as we’re working on a way to automagically adapt animations to the character receiving it, by also storing the proportions from the original character to be able to apply a ratio before applying them to the new character (or prop).
You have the option to apply all available values to all properties, or only apply the animated ones (the ones with keyframes).
You can also choose which type of properties to use or ignore, by checking the icons:
- Position of the layers
- Rotation of the layers
- Scale of the layers
- Opacity of the layers
- All properties
The new values can either replace (absolute) or be added (offset) to the current values, and you can optionally reverse the keyframes in time.
Editing the library
Click the add button to add a new category, or a new animation from the currently selected layers, in the current library category.
When adding a new animation, you have the option to automatically bake all expressions to keyframes. For more options on the baking process, you could instead use the Bake Expressions 1 tool beforehand.
Duik renders the current frame of the composition to use it as a thumbnail.
Select a category and click the edit button to edit its name.
Select an animation and click the edit button to change its thumbnail, its name, replace it by another animation or add it to your favorites.
When updating the thumbnail, Duik will use the current frame of the active composition, which can be any composition and not necessarilly the one containing the original animation.
Select a category or an animation and click the remove button to remove it.
The animation library containing folder has the same hierarchy as the categories in the panel. Changing the files and their location in this folder will actually also change them in the library panel.
Some metadata, like the favorites and history, is stored in the
Duik_animation_library.json file at the root of the main folder.
For now (2023), animations are stored using a
duio format which is specific to Duik and DuIO 2, but this is going to change soon when OKA, the Open Keyframe Animation format RxLaboratory is developing will be available.
Thumbnails are stored as
.png files named after the animation