TextDocument obj
- ソーステキスト設定
- var myTextLayer=app.project.item(1).layer(1);
- var myTextDocument = new TextDocument("Happy Cake");
- myTextLayer.property("Source Text").setValue(myTextDocument);
- alert(myTextLayer.property("Source Text").value);
- キーにテキスト設定。時間で変化
- var textProp = myTextLayer.property("Source Text");
- textProp.setValueAtTime(0, new TextDocument("いち"));
- textProp.setValueAtTime(.33, new TextDocument("にい"));
- textProp.setValueAtTime(.66, new TextDocument("さん"));
- textProp.setValueAtTime(1, new TextDocument("だぁー!"));
- テキストプロパティ・コントロール(CS4)
- var newTextLayer = myComp.layers.addText("newText");
- var textDoc = newTextLayer.property("ADBE Text Properties").property("ADBE Text Document")
- var newText = textDoc.value;
- moji = "Hello ! ";
- newText.resetCharStyle();
- newText.fontSize = 30;
- newText.fillColor = [0.5, 0.5, 0.5];
- newText.strokeColor = [0.9, 0.9, 0.9];
- newText.strokeWidth = 2;
- newText.font = "Latha";
- newText.strokeOverFill = true;
- newText.applyStroke = true;
- newText.applyFill = true;
- newText.text = moji;
- newText.justification = ParagraphJustification.CENTER_JUSTIFY;
- textDoc.setValue(newText);
前のページへ