# Tim Koda AI Motion Design System

Pipeline completo: **Krea Node Apps + Claude Code + 8 motion prompts**. Criado/referenciado pelo Tim Koda — motion designer especialista em AI.

## Arquitetura

```
[Imagem estática Y2K/Produto]
         ↓
[Krea Node App (workflow salvo)]
         ↓
[scripts/krea/run-workflow.py]  ← Claude Code orquestra
         ↓
[Vídeo motion MP4 1080p]
         ↓
[FFmpeg pós (se precisar)]
         ↓
[Publish: VIZNFR PUBLISHER ou manual]
```

## Setup Krea Node App

1. Criar workflow visual em app.krea.ai (drag-and-drop de nodes: image input → motion → export)
2. Publicar como Node App → copiar `VERSION_ID` da URL
3. Usar o script Python `templates/krea-run-workflow.py` pra executar via API

## Script Python (já pronto em `templates/krea-run-workflow.py`)

O script faz:
1. POST `/assets` multipart upload da imagem input
2. POST `/node-apps/{VERSION_ID}/execute` com asset_id e params do workflow
3. GET `/jobs/{job_id}` polling até status = `completed`
4. Download do output MP4

Variáveis de ambiente:
- `KREA_API_KEY` — obter em krea.ai settings
- `KREA_VERSION_ID` — por workflow
- `KREA_WEBHOOK_URL` — opcional, pra async

## 8 Motion Prompts prontos (cole no Krea text input do workflow)

### 1. Liquid Chrome Bloom
```
Static Y2K chrome logo slowly blooms outward with mercury-like liquid
physics, ripples emanating from center, 3D refractions catching light,
5-second loop, ultra-smooth 60fps interpolation, no jitter, seamless
restart. Camera locked.
```

### 2. Parallax Product Reveal
```
Product stays anchored, background layers drift parallax (3 depth planes),
subtle dolly-in on z-axis, film grain layer on top, 6-second loop,
cinematic ease-in-out, volumetric rim light rotates 15deg.
```

### 3. Holographic Iridescence
```
Surface shifts through holographic rainbow gradient (cyan → magenta →
lime → gold) in continuous cycle, subtle foil catchlights sliding across,
8-second loop, organic not mechanical, feels like physical holo sticker
tilting under light.
```

### 4. Glitch VHS Pulse
```
Single pulse every 2 seconds: RGB channel split 3px, VHS tracking
distortion band sweeps top-to-bottom, 1-frame static noise flash, returns
to clean state. 4-pulse loop total = 8 seconds, restarts seamlessly.
```

### 5. Ticker Text Scroll
```
Horizontal ticker at bottom 15% of frame, text scrolls R→L at constant
75px/s, monospace type, glowing phosphor green on black, loops seamlessly
when text exits frame = re-enters other side. 10-second loop.
```

### 6. Y2K Zoom Punch
```
Fast zoom-in from 100% to 120% over 12 frames, hold 8 frames, zoom-out
to 100% over 12 frames, motion blur during zooms, chromatic aberration
peaks at 120% scale, 1-second loop, aggressive hype energy.
```

### 7. Liquid Text Morph
```
Typography morphs between 3 words via liquid mercury transition, each
letter dissolves into droplet, droplets coalesce into next letter,
smooth 400ms per morph, 9-second loop (3 words × 3s each).
```

### 8. Orbital Camera
```
Camera orbits subject 360deg over 10 seconds at constant angular velocity,
subject rotation locked (world-stable), no easing (pure linear for
seamless loop), soft rim light tracking with camera, volumetric fog bed.
```

## Integração com Claude Code

```bash
# No projeto da campanha
python3 ~/.claude/skills/marketing-campanha-ia/templates/krea-run-workflow.py \
  --image ./hero-static.jpg \
  --prompt "Liquid Chrome Bloom (see reference 03)" \
  --output ./hero-motion.mp4
```

Claude Code pode gerar 10 variações em paralelo disparando 10 execuções simultâneas.

## Cross-ref

- Input image pipeline: `references/01-y2k-design.md`
- Publish final: `references/06-viznfr-ad-dashboard.md` (PUBLISHER agent)
- Paper Animator alternativa low-cost: `references/09-ferramentas.md`
