Skip to main content
Participant
January 4, 2024
Answered

プラグインの再リロード

  • January 4, 2024
  • 2 replies
  • 762 views

初めまして。after efects のプラグインを研究中です。プラグインのコードを書いて実際に after efects で始めるにはコードをビルドして、今開いている after efects を閉じてもう一度 after efects を起動させている、しかし、これは手間がかかります。そこで after efects のスクリプト機能で簡単にプラグインを再リロードすることはできないだろうか?

This topic has been closed for replies.
Correct answer shachar carmi

i used google translte, so hopefully i got your question right.

the concept you're describing is called "hot reload" in microsoft visual studio. (in the past, it was called "edit and continue")

way back on 32bit builds it was common practice, but on the transition to 64bit it got lost for a while. i grew accustomed to working without it, so i can't give much adive about using it.

if you're using xcode, perhpas this trick would help:
https://stackoverflow.com/questions/42529081/instant-run-or-hot-reloading-for-xcode

 

in any case, even hot reloading has it's limits when working on an AE plugin. for example, you can't change param setup like that, because AE calls param setup only once per session when the plugin is first loaded, so hot reloading won't cause AE to re-run that call.

2 replies

shachar carmiCommunity ExpertCorrect answer
Community Expert
January 4, 2024

i used google translte, so hopefully i got your question right.

the concept you're describing is called "hot reload" in microsoft visual studio. (in the past, it was called "edit and continue")

way back on 32bit builds it was common practice, but on the transition to 64bit it got lost for a while. i grew accustomed to working without it, so i can't give much adive about using it.

if you're using xcode, perhpas this trick would help:
https://stackoverflow.com/questions/42529081/instant-run-or-hot-reloading-for-xcode

 

in any case, even hot reloading has it's limits when working on an AE plugin. for example, you can't change param setup like that, because AE calls param setup only once per session when the plugin is first loaded, so hot reloading won't cause AE to re-run that call.

K.OhAuthor
Participant
January 4, 2024

URLを確認しましたが。やはり残念ながら起動を繰り返す必要がありそうですね‥回答ありがとうございます!

K.OhAuthor
Participant
January 4, 2024

返信ありがとうございます。やはり起動を繰り返す必要があるのですね‥しかし、AE の起動時間が早くなる方法がわかってよかったです!

Legend
January 4, 2024

Unfortunately no.  Each time you build the C++ code, you would need to restart After Effects.  This process is different if you are building ExtendScript or CEP wherein you do not need to reload the entirety of the AE application.  It's time consuming, but if you debug via your IDE like Microsoft Visual Studio or Apple XCode the startup time seems to go faster than normally starting AE.

K.OhAuthor
Participant
January 4, 2024

返信ありがとうございます。やはり起動を繰り返す必要があるのですね‥しかし、AEの起動時間が早くなる方法がわかってよかったです!