Skip to content

anim-format (runtime format) / sharedItems

Function: sharedItems() ​

ts
function sharedItems(
   src, 
   srcItems, 
   dst
): Item[];

A SHARED layer's objects (playShared): dst's own objects (its setup pose = its first run with objects) moved the way the source layer's objects srcItems moved from THEIR setup pose — object k of a kind ↔ object k of that kind (pairByKind) — with the source's alpha / colour / filters / blend / visibility / 3D, a symbol's loop / first frame, a mesh's pulls when the point counts agree. Objects of dst nothing pairs with stay as they are set up. Cached per source frame.

Parameters ​

ParameterType
srcAnimLayer
srcItemsItem[]
dstAnimLayer

Returns ​

Item[]

HereSplash — 2D animation for the web