LoginSignup
0
0

More than 5 years have passed since last update.

After Effects のスクリプトで、プロジェクトウインドウ内で選択しているアイテムの取得

Last updated at Posted at 2018-01-29

はじめに

AfterEffects でスクリプトを書くには、メニューの「ファイル」→「スクリプト」→「スクリプトエディタを開く」でスクリプトを記述するコンソールが表示されます。

方法

app.project.selection
で、選択しているアイテムのリストが取得できる。というか格納されている。

数は、
app.project.selection.length

要素は
app.project.selection[0]

コンポジションのレイヤーは
app.project.selection[0].layer(j)
コンポジションのレイヤー数は
app.project.selection[0].numLayers

コツ的な

app.project.selection
は配列なので、[]でも()でもいいが、
app.project.selection[0].layer(j)
はメソッドなので、()でないといけない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0