replaceWithPlaceholder

書き方:[object FootageItem].replaceWithPlaceholder(name, width, height, frameRate, duration);

値の読み出し/書き込み: 

返り値:なし

使用可能バージョン:AE7/CS3/CS4

バージョンに対する特筆

説明

フッテージにプレースホルダを設定する

名前とかを引数で渡すが、ピクセルアスペクト比だけは渡せない。(勝手にもとのピクセルアスペクト比を使う)

ヘルプには

プレースホルダを効率よく代用するには、プレースホルダのサイズ、デュレーション、フレームレートを実際のフッテージと同じに設定します。

とあるので、関数化したほうがいいかも

使用例

var target = app.project.item(1);

target.replaceWithPlaceholder('hoge', 100, 100, 24, 2);

var target = app.project.item(1);

target.replaceWithPlaceholder(target.name, target.width, target.height, target.frameRate, target.duration);

FootageItem.prototype.cz_replaceWithPlaceholder = function (){

var name = this.name;

var width = this.width;

var height = this.height;

var frameRate = this.frameRate;

var duration = this.duration;


this.replaceWithPlaceholder(name, width, height, frameRate, duration);

}

var target = app.project.item(1);

target.cz_replaceWithPlaceholder();

function cz_replaceWithPlaceholder(footage){

if(footage instanceof FootageItem){

var name = footage.name;

var width = footage.width;

var height = footage.height;

var frameRate = footage.frameRate;

var duration = footage.duration;


footage.replaceWithPlaceholder(name, width, height, frameRate, duration);


return 0;

}else{

return 1;

}

}

var target = app.project.item(1);

cz_replaceWithPlaceholder(target);

その他