Shape tweens can fold or self-intersect. A closed-contour correspondence model explains one possible cause; Adobe’s shape-hint documentation and open-source morphing code provide separate reference points. The model below is analytical, rather than a disclosed Adobe implementation.
Shape tweening and contour correspondence
A motion tween acts on one object: a symbol instance whose transform matrix and colour effect are interpolated. The object is the same thing from start to finish, so the question of what corresponds to what never arises.
A shape tween is different. It acts on raw, ungrouped vector art — fills and strokes. The first keyframe holds one set of contours, the last holds another, and the two sets can differ in vertex count, in ordering, and in how many separate contours exist at all. The tweener has to decide which point on the starting contour becomes which point on the ending contour. There is no uniquely correct answer to that question.
This is also why dropping a symbol or a group into a shape tween fails: neither is raw vector art. Animate requires Break Apart first, so that the tweener has contours to match.
Where the ambiguity comes from
Take the starting contour as a closed polygon resampled to N points, A = [a_0, a_1, ..., a_{N-1}], and the ending contour resampled to the same N points, B = [b_0, b_1, ..., b_{N-1}]. An intermediate frame is then just linear interpolation:
p_i(t) = (1 - t) · a_i + t · b_{(i + k) mod N}
Everything hinges on k, the start offset. A closed contour has no objective “first point”, so rotating B’s starting index by one produces entirely different intermediate frames. With N points there are N candidate correspondences, and traversal direction — clockwise or counter-clockwise — doubles that to 2N.
In this teaching model, choose the offset with the smallest sum of squared point distances:
cost(k) = Σ_i ‖ a_i - b_{(i + k) mod N} ‖²
choose k* = argmin_k cost(k)
A minimum-distance match can still produce an unintended transition. Inspect sampling, direction, starting index, holes and self-intersections. An incorrect offset is one candidate cause.
Topology changes need transition rules
A second class of failure has nothing to do with k: one closed contour on the first keyframe, two on the last. Or a solid shape at the start and a shape with a hole at the end — that is two contours, outer plus inner.
Linear interpolation with fixed connectivity cannot split a contour while preserving a nondegenerate correspondence. Degenerate shapes, self-intersections, remeshing or implicit representations can support designed topology changes through additional rules.
Inspect contour count, holes and winding first. Different topologies need an explicit degeneration, component split or another representation. Adding intermediate keys alone cannot make the topology of every segment match automatically.
How shape hints specify corresponding locations
Shape hints specify corresponding locations on the endpoint shapes. In the simplified model, they constrain offset choices; an actual tool may also change sampling and segmentation.
The constraints give the following usage rules:
- Hints must be paired and snapped to the contour. An unsnapped hint imposes no constraint and does nothing. Animate signals acceptance by colour, typically yellow on the first keyframe and green on the last, though the exact palette varies by version.
- The order must match. Hints must appear in the same cyclic order around both contours. If the start reads a→b→c clockwise while the end reads a→c→b, the constraints contradict each other and the result is usually worse than adding no hints at all.
- Start with a few hints on semantic corners and add them according to intermediate poses, covering important contour regions.
- Hints do not automatically define a topology transition; differing contour counts need a component map or designed degeneration.
Correspondence in open-source morphing
Native SVG path-data interpolation requires compatible parsed command structures. Paths with different numbers of L segments cannot directly interpolate continuously and generally switch discretely. A library can first create compatible structures.
Flubber provides an inspectable example: interpolateRing equalises ring point counts, rotate searches cyclic offsets by squared distance, and interpolation then proceeds point by point. This is one algorithm, not evidence of Animate internals. The steps below remain a conceptual workflow.
1. Resample both paths to the same point count N (uniform along arc length)
2. Sweep the start offset k and evaluate cost(k)
3. Take the argmin, and try the reversed traversal as well
4. Emit two paths with equal point counts and aligned starting points
5. Interpolate point by point
Splits and merges need additional contour assignment or degeneration rules. Check the particular library and API. Both hints and automatic matching establish point correspondence, while their treatment of topology can differ.
Inspect correspondence and topology before changing formats. Carrying the same incorrect match into SVG preserves the problem; rematching or redesigning paths can change the outcome.
When to switch to mesh deformation
Path morphing can suit changing icon contours; meshes can suit faces, cloth or limbs with stable material points. A split such as a separating droplet still needs an explicit topology transition.
A mesh fixes vertex identity and reduces repeated contour matching. It can still fold, self-intersect or collapse. Check signed triangle areas, weights and joint limits. Bone, FFD and liquify tools need not use identical implementations.
When material points have a stable correspondence, compare mesh, skeletal and path methods. If correspondence is unclear, specify the intended motion before adding hints or splitting parts.
How to verify this
In the teaching model, compare a centred square with its 45° rotation using four vertices and the same winding. Clockwise and counterclockwise 45° matches have equal costs. Test any software choice with its version, vertices and hint settings recorded.
Hints can specify corner correspondence, but linear point interpolation is not rigid rotation. Halfway through a 45° change, it contracts by cos(22.5°)≈0.92388. Interpolate the rotation transform when rigidity is required.