Input video
Output SVG motion program code
Output SVG motion program
Input SVG motion program
MPTransformer(P, args):
// OBJECT SELECTOR: Query for all shapes with the "all" propType.
// No matchCriteria is needed, hence an empty array [].
selObjs = objSelector(P, propQuery, "all", [], [0, P.endFrm])
// OBJECT TRANSFORMER: Add anticipation and follow-through
// to selObjs with amplitude=15 and sigma=2.
// Because this animation has significant changes in both position
// and scale, anticipation and follow through will be most visible
// in those transformations.
anticipateFollowThruObjTransformer(selObjs, [0, P.endFrm], 15, 2)
Motion program transformer code. Here we add anticipation and follow-through to the letters with anticipateFollowThruObjTransformer. Because the letters have significant changes in both position and scale, the effects will be most visible in those transformations.
Output SVG motion program