Skip to content

About

Use PSDTool(kit)-compatible PSD files with Revideo (Revideoでゆっくり動画)

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

revideo-psdtool

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release


📘Documentation: https://34j.github.io/revideo-psdtool/

📦️NPM Package: https://www.npmjs.com/package/revideo-psdtool


project.mp4

Source

Installation

npm install revideo-psdtool

Usage

import { makeScene2D } from '@revideo/2d'
import { createRef, waitFor } from '@revideo/core'
import { Psd } from 'revideo-psdtool'

const scene = makeScene2D('scene', function* (view) {
  const psdRef = createRef<Psd>()
  view.add(
    <>
      <Psd
        psdSrc="/demo/ccchu.psd"
        psdToolData={{}}
        width={400}
        x={-100}
        y={85}
        ref={psdRef}
      />
    </>,
  )

  // 1. Change look
  // See https://34j.github.io/react-ag-psd-psdtool/
  // for options of psdToolData for your PSD file
  psdRef().psdToolData({ right_eye: 'wink' })

  // 2. Flip the PSD without "mirroring"
  // (unchanged text, flipped hair ornaments, etc.)
  psdRef().psdToolRenderOptions({ flipx: true })
})

About

Use PSDTool(kit)-compatible PSD files with Revideo (Revideoでゆっくり動画)

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages