
基礎動畫
Rack focus
@opus-motion-library/rack-focus
Focus pulls between a foreground, a subject and a background layer: blur follows depth, bokeh blooms, lens breathes.
安裝
node cli/mgl.mjs add rack-focus --to <your-project>/src適用情境
- 適合
- Shifting attention from one thing to another in a still-image scene; cinematic reveals; product-then-environment shots; drama beats.
規格
- 長度
- 150f · 5s
- 長度類型
- 固定長度
- FPS
- 30
- 風格
- cinematic
- 授權
- MIT
Props(10)
backSrcstring= ""background picture (empty = procedural)
subjectSrcstring= ""transparent PNG subject (empty = procedural figure)
frontSrcstring= ""transparent PNG foreground (empty = procedural blades)
focusKeysarray= [[0,0.5],[30,0.5],[60,0],[90,0],[122,1]][frame, focus] keys: 0 = foreground, 0.5 = subject, 1 = background
maxBlurnumber= 46blur at the furthest depth in u
breathingnumber= 1lens breathing amount (0 = none)
bokehboolean= truebokeh discs bloom on the blurred background
palettearray= ["#ff7a59","#6a4cff","#14b8a6","#ffd166"]colours for procedural layers / bokeh
accentstring= "#ffd166"procedural subject accent
backgroundstring= "#000000"base colour