Skip to main content
Participating Frequently
April 2, 2024
Question

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

  • April 2, 2024
  • 1 reply
  • 514 views

例えは「ANIMATION」というテキストの3文字目の「I」の位置を取得したい場合、
テキストアニメーターで3文字目の「I」以外の文字を非表示にした状態で
sourceRectAtTime().left + sourceRectAtTime().width / 2
をすればX座標の位置を取得できるかなと思ったんですが、
sourceRectAtTime()がテキストレイヤーの文字を「ANIMATION」(3文字目の「I」のみではなく)として認識してしまうため
3文字目の「I」の位置がうまく取得できません

何か方法はありませんでしょうか?

    This topic has been closed for replies.

    1 reply

    Community Expert
    April 3, 2024

    参考になるか分かりませんが関連する記事のリンクを貼っておきます。
    2番目のプロジェクトファイルは、各文字の情報が表示されています。


    Possible to get positions of characters in a text ... - Adobe Community - 9758938 

    Find out position of individual characters in text layer - Adobe After Effects Expressions - Creative COW 

    Participating Frequently
    April 3, 2024

    ありがとうございます。

    自分の調査不足でした。

    参考にします!