Item

Item.getActiveItem()

getActiveItem(): Item | null;

app.project.activeItem に同じ。なぜ入れたのか分からないので、将来的に取り除くやも。

参照: AEGP_GetActiveItem

Item.touchActiveItem()

touchActiveItem(): void;

アクティブなアイテムが更新されたとAEに通知する。

参照: PF_TouchActiveItem

  • TypeScript
  • JavaScript
Atarabi.item.touchActiveItem();
Atarabi.item.touchActiveItem();

New in version 0.2.0.

Item.moveTimeStepActiveItem()

moveTimeStepActiveItem(steps: number): void;

アクティブなアイテムの現在フレームを指定ステップ数だけ前後に移動させる。

参照: PF_MoveTimeStepActiveItem

  • TypeScript
  • JavaScript
Atarabi.item.moveTimeStepActiveItem(1);
Atarabi.item.moveTimeStepActiveItem(1);

New in version 0.2.0.

Item.getFootageSoundDataFormat()

getFootageSoundDataFormat(item: FootageItem): SoundDataFormat;

アイテムの音声のサンプルレート、モノラルorステレオなどを取得する。

参照: AEGP_GetFootageSoundDataFormat

  • TypeScript
  • JavaScript
const item = app.project.activeItem;
if (item instanceof FootageItem) {
    const soundDataFormat = Atarabi.item.getFootageSoundDataFormat(item);
}
var item = app.project.activeItem;
if (item instanceof FootageItem) {
    var soundDataFormat = Atarabi.item.getFootageSoundDataFormat(item);
}

New in version 0.2.0.