Skip to main content
Participating Frequently
July 12, 2024
Answered

1文字ごとにテキストの情報を取得したい(エクスプレッション)

  • July 12, 2024
  • 1 reply
  • 192 views

「Main Title」コンプの「BaseText」テキストレイヤーからテキストの情報を取得して
「Comp 1」コンプの「text」テキストレイヤーにセットしているのですが、
これだと「BaseText」テキストレイヤーの1文字目のテキストの情報(フォントやフォントサイズなど)を取得してしまいます。

どういうことかというと、例えば
「Main Title」コンプの「BaseText」テキストレイヤーのテキストの1文字目だけフォントを変えるとそれが
「Comp 1」コンプの「text」テキストレイヤーのテキスト全体に反映されます。

やりたいのは
文字ごとに違うフォント、違うフォントサイズ等が反映されるようにしたいのです

どうすればよいでしょうか?


txt = comp("Main Title").layer("BaseText").text.sourceText;
style = comp("Main Title").layer("BaseText").text.sourceText.style;
style.setText(txt)

    This topic has been closed for replies.
    Correct answer Mukaida

    テキストのエクスプレッションは、今後のバージョンでアップデートが予定されています。


    下記リンクのような機能でしょうか。
    現在は、ベータ版で試す事ができます。
    Now in Beta: Per-character Text and Paragraph Styl... - Adobe Community - 14624910 

    1 reply

    MukaidaCommunity ExpertCorrect answer
    Community Expert
    July 12, 2024

    テキストのエクスプレッションは、今後のバージョンでアップデートが予定されています。


    下記リンクのような機能でしょうか。
    現在は、ベータ版で試す事ができます。
    Now in Beta: Per-character Text and Paragraph Styl... - Adobe Community - 14624910