/assignshapekey

Blender add-on to assign Bezier curves as shape keys

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Demo

Blender add-on to assign shape keys

This add-on lets you assign one or more Bezier curve(s) as shape keys to other curve

Available in Blender version: 2.8

Installation

The add-on is available as part of the standard add-on repository of Blender 2.8. You just need to enable the add-on from the add-ons dialog.

After enabling the add-on, a new 'Assign Shape Keys' panel shows up in 'Active Tool and Workspace settings' tab when application is in object mode.

Quick start

Select the target and shape key Bezier curve objects. Make sure the target is the active object; you can do this by right-clicking the target curve while holding the shift key after the other selections are made. Go to the 'Assign Shape Keys' tab and click 'Assign Shape Keys' button. Now a copy of the active object curve will be created, which will have the other selected curves as its target. If the 'Remove Original Objects' option is checked, the selected curve objects will be deleted and only the target is kept.

There are a number of option to align the closed (cyclic spline) target and shape-key curves. Also it's possible to match individual parts from a multi-part (multi-spline) of target and shape key curves (e.g. text object converted to curve) based on various criteria.

Demo

For smoother transition, you can subdivide the segments of one of the curves in the selection group.

Manual Alignment of Starting Vertices

In the edit mode the Assign Shape Keys panel shows a single button - Mark Starting Vertices. When Clicked, all the starting vertices of the closed splines (disconnected parts) of the selected curves are indicated by a marking point. Now if the user selects any vertex, the marker moves to this selected vertex, indicating the new starting vertex. You need to confirm the new positions by pressing enter. Pressing escape, reverts the positions to the earlier order.
Demo

Change of vertex order being a change in topology, this operation will distort the existing shape keys. (See the usage example for a fix.)

This video provides a detailed overview of the add-on functionality and various options available.
Manual vertex alignment is explained in more detail in this video. (the marker spheres are now replaced with marker points [of fixed size] and so the marker size change feature is removed from the latest version)
And you will find a usage example with practical application of the tool (retaining shape key after change in topology) in this video. Finally the tutorial on creating a font morphing animation using this addon is here.

Limitations

All vertex handle types are changed to FREE to make the shape key vertex mapping possible.
Exercise caution when using this add-on in production as it's in beta stage
Keep watching this space, as there will be enhancements and bug-fixes included in future.

License

MIT