====== Spline Edit (Layout Tool) - Animation ====== The db&w Splines support animation since the October release of the db&w Tools. Initially, individual points (knots, control points, up vectors) may be animated using key frames or by following other items in the scene. {{youtube>r-8fozRKb5Y?large}} By default, when creating a spline, all points are static. Their position may be edited at any frame. {{ :tools:s-tk:pasted:20191002-101109.png}} The type of point may be changed using the Context Menu ((Launched by clicking the right mouse button)) while a point is selected or by changing it in the editor panel. The type of animation applied to a point is also visualised by the shape of the point as well as the colour: * **Square** : A square around a point designates it as being static or driven by shape animation. * **Circle** : A circle around a point designates it as being animated by an envelope. It is green when between key frames, red if there is a key at the current frame. * **Diamond** : A blue diamond shape designates the point as following a Layout item. Additionally, letters underneath the points designate the type of animation, **S** for static, **A** for enveloped animations, **K** for enveloped animations if the current frame is a key frame, **I** for following items and **Sh** for points controlled by shape animation. Capital letters are used for the knots, small caps for the other points. These can be disabled using the **Point Labels** settings in the tool panel. ===== Enveloped Animation ===== Enveloped points can be animated by using the Spline Editor or the envelopes in the Graph Editor. The Spline Editor uses Layout's Auto Key settings when the points are edited: * **Auto Key: Off** : No keys are set or modified * **Auto Key: Modified** : Keys are created and changed on the modified axes only. The axes to modify are determined by the type of handle that is used to change the position, the axis handles only modify one axis while the planar handles modify two. * **Auto Key: All Channels** : Keys are created and changed on all axes. * **Auto Key: Existing** : Only existing keys are modified, no new keys are created. * **Auto Key: Fixed** : Due to SDK limitations, this setting is ignored and behaves like **Auto Key: Off** The tool draws the motion path of the currently selected points. This can be changed using the **Motion Path** and **Frames +/-** settings in the tool panel. ==== Context Menu ==== The Context Menu for the point will display the appropriate options for the currently selected point as well as the current frame. For example, an option to delete a key is only displayed if there is a key at the current frame. You can also create and delete keys on specific channels only. The Context menu will also display options to jump to the previous/next key frame and open the Graph Editor with the envelopes controlling the selected point. The point can also be changed back to static with the "Remove Animation" option or changed to follow an item instead. ===== Following Items ===== As an alternative to directly animating points, they can also follow any Layout item. Right click on the point to open the Context Menu and select "Follow Item..." or use the tool panel to change the point to follow an item. The item to follow can be selected using a pop-up menu in either case. ==== Context Menu ==== The point's Context Menu allows you to change the animation type to static or enveloped and also allows you to pick a different item to follow. ===== Shape Animation ===== {{youtube>dlFg3ebg7gI?large}} As of the version released in October 2019, the Spline Edit tool also supports shape animation. A shape is the position and state of all knots on a spline stored as a separate entity. The shapes are displayed in a list and they can be used to change the spline using a progress envelope. You can think of shapes as morph or poses for the spline. {{ :tools:s-tk:pasted:20191029-151534.png}} If the spline animation is driven by shapes, individual points can still be animated separately. Be it by using envelopes or following an item. They can even be set to be static. If shape animation is used, the envelope is exposed in the Dope sheet above the timeline - unless an animated point is selected. Then the envelopes of that point are exposed. Points controlled by shape animation (as designated by the sh/Sh label) can only be moved if the curve is currently on the value(!) for a shape. This is designated by the curve being rendered in green. \\ You can also force a specific shape to be the current shape by turning on the **Solo** mode. ==== Shapes tab (tool panel) ==== The shapes tab contains all controls related to shapes. Some of these are mirrored in the viewport menu or the right click, context menu in the viewport. === Shape Animation === This controls how the spline edit tool deals with the envelope driving the shapes while the spline is edited. If set to **Automatic**, if you add or remove a shape the spline tool will add/remove a key in the envelope at the current time and adjusts all other keys accordingly. It also tried to adjust the keys when shapes are re-ordered in the list of shapes. If set to **Manual**, the envelope driving the shapes is not modified by the spline edit tool at all. === Progress (the label is WiP ;) ) === This is the envelope that drive the animation along the shapes. At 0%, the first shape in the list is used, at 100% the second shape and so on. If **Mode** is set to **Relative** then 0% is the start of the list, 100% the last item in the list. === Solo === This will only display the shape that's currently selected in the list. The **Progress** envelope is ignored. === Mode === This determines how the **Progress** envelope is evaluated. * **Absolute** At 0%, the first shape in the list is used, at 100% the second shape and so on. * **Relative** 0% is the start of the list, 100% the last item in the list. === Previous / Next Key === Jumps to the previous/next frame where the **Progress** envelope has a key. === List of Shapes === This list shows all shapes for the curve. You can double click on a shape to toggle **Solo** mode. {{ :tools:s-tk:pasted:20191029-154006.png}} A right click menu allows you to perform actions on the selected shape. * **Move Up** Moves the shape up in the list. * **Move Down** Move the shape down in the list. * **Rename Shape...** Renames the shape for your convenience. The name is not used internally. * **Add Shape...** Adds a new shape at the end of the list. * **Insert Shape...** Adds a new shape before the currently selected shape. * **Remove Shape** Remove the current shape. * **Remove Shape Animation** Removes all shapes and clear the **Progress** envelope.