0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

久々に大量のコンポジション修正した

Last updated at Posted at 2020-07-27

大量のコンポ内のテキストの行揃え変更しなきゃって時はこれ使って!

lng = app.project.selection.length;

for ( var i = 0; i <lng ; i++ ){
    //$.writeln(app.project.selection[i].name);
    myLayer = app.project.selection[i].layer(1)
    var mySourceText = myLayer.property("ADBE Text Properties").property("ADBE Text Document");
    var myTextDoc = mySourceText.value;
    var center= ParagraphJustification.CENTER_JUSTIFY; 
    myTextDoc.justification = center;
    mySourceText.setValue(myTextDoc);
}


使い方はプロジェクトパネルでコンプ対処のコンポジションを選択するだけ。
とりあえずテキストレイヤーの参照はインデックス1番の場合なので、各々変えてもらえればGood!!

さすがに600個超えのコンポジションを手作業でやるのはね~。
スクリプト覚えておいて良かった。

つでに大量にコンポジションを複製するやつ

var dupNum = 617;
app.beginUndoGroup("dup");
    for ( var i = 1 ; i < dupNum-1 ; i++){
        app.project.selection[0].duplicate();
    }
app.endUndoGroup();
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?