v1.0.0-rc.4

diffusionstudio/corev1.0.0-rc.4Sep 9, 2024by k9p5

AI Summary

Diffusion Studio now integrates an animation API inspired by Motion Canvas, allowing for complex keyframe animations like rotation and scaling on text clips.

Key Highlights

  • Motion Canvas inspired animation API
  • Chaining animations (rotation, scale)
  • New animate() method on clips

New Features

  • Motion Canvas animation API

Full Release Notes

- Integrated Motion Canvas inspired animation API

### Example
```typescript
const text = await composition.add(
  new core.TextClip({
    text: 'Hello World',
    position: 'center',
    fontSize: 34
  })
);

// begin with calling the animate method
text.animate()
  .rotation(243).to(360 * 2, 15) // start at 243 deg, and animate to 2 * 360 deg in 15 frames
  .scale(0.3).to(1, 10) // scale from 0.3 to 1 in 10 frames
```