Skip to main content
Known Participant
November 5, 2019
Answered

エクスプレッション 裏表

  • November 5, 2019
  • 5 replies
  • 2039 views

お世話になっております。

 

if (toCompVec([0, 0, 1])[2] > 0 ) value else 0

の記述でレイヤーを3D上で回転させた時に透明度をコントロールしてましたが

AEが新しくなってから一部のエクスプレッションが使えなくなりました

同様の事をエクスプレッションで記述するには同のように記述すればいいのでしょうか?

ご教授願います

 

...このフォーラムも使いづらいなぁ~

 

    This topic has been closed for replies.
    Correct answer Mukaida

    別の方法として、valueの後で改行すれば動作します。
    また、スクリプトに「Update Legacy Expression」が用意されているので、自動でJavaScriptの形式に変換することができます。

    たしかにフォーラムは使いにくくなりましたね。
    日本語の質問は随分少なくなりましたが、検索で「の」を入力すると日本語のスレッドだけを見つけられるようです。
    表示される件数を増やしたい場合は、手作業でURLを下記のように書き換えることで対応できます。(別のスレッドで見つけた方法です)

    https://community.adobe.com/t5/forums/searchpage/tab/message?filter=location&advanced=true&location=forum-board:After-Effects&sort_by=-date&collapse_discussion=true&search_type=message&search_page_size=50

    5 replies

    Liquid MKAuthor
    Known Participant
    November 18, 2019

    言語で分けて検索できないのかな

    もしくはソートしてほしい

    Liquid MKAuthor
    Known Participant
    November 9, 2019

    ご返信ありがとうございます。

    It's poor English.
    To everyone who responded
    Thank you!

     

    レガシーからの変換スクリプトはAE2020前にはあったのは知っていましたがAE2020にバージョンアップしたら見つからなく...?投稿しました

    ありがとうございました。

     

    MukaidaCommunity ExpertCorrect answer
    Community Expert
    November 5, 2019

    別の方法として、valueの後で改行すれば動作します。
    また、スクリプトに「Update Legacy Expression」が用意されているので、自動でJavaScriptの形式に変換することができます。

    たしかにフォーラムは使いにくくなりましたね。
    日本語の質問は随分少なくなりましたが、検索で「の」を入力すると日本語のスレッドだけを見つけられるようです。
    表示される件数を増やしたい場合は、手作業でURLを下記のように書き換えることで対応できます。(別のスレッドで見つけた方法です)

    https://community.adobe.com/t5/forums/searchpage/tab/message?filter=location&advanced=true&location=forum-board:After-Effects&sort_by=-date&collapse_discussion=true&search_type=message&search_page_size=50

    angie_taylor
    Legend
    November 5, 2019

    Its sad to hear that the number of questions from Japanese customers has reduced because of this. The system is new and is being improved as we speak. Please can you give feedback describing the issues you are having so that Adobe can help us perfect it for you so it is useful again 🙂

     

    I found it difficult to begin with but it is improving and it's much faster than the old system 🙂

     

    Good luck!

    OussK
    Community Expert
    Community Expert
    November 5, 2019

    another solution is to run the legacy expression, you can do this from project settings/Expressions expressions engine set to legacy

    Roland Kahlenberg
    Legend
    November 5, 2019

    Since AE CC2019, you have to use braces, { } to encapsulate results for if .. then Expressions that are written in a single line.

     

    More info here - https://helpx.adobe.com/lv/after-effects/using/legacy-and-extend-script-engine.html

     

    So, write your Expression like this -

     

    if (toCompVec([0, 0, 1])[2] > 0) {value} else {0}

     

     

     

     

    Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV