Skip to main content
Inspiring
August 12, 2022
Answered

script CEP - How to automatically open after effects if notOpned and open cep panel and run script.

  • August 12, 2022
  • 2 replies
  • 469 views

I am using nodejs to sockets to communicate with after effects cep panel its working.But i want to open after effects if  not opened and   close any diagloue box if any opend. and open cep panel if not opened or restart cep panel. How to do. Please guide.

This topic has been closed for replies.
Correct answer Justin Taylor-Hyper Brew

2 ways you could check are:

  • Check if the AE process is running via OS command line
  • Have a CEP panel in AE auto-start and communicate with your external app via websockets

2 replies

Justin Taylor-Hyper Brew
Adobe Expert
August 15, 2022

Are you trying to open After Effects from a CEP panel in another Adobe app, or from a standalone Node.js app?

Inspiring
August 15, 2022

Yes from another standalone nodejs app. I am able open using "OPEN" Module. But unable decide if it has opened or not. How long it is talking. If AE opened  completely then how do i known. How to handle this.

Justin Taylor-Hyper Brew
Adobe Expert
August 15, 2022

2 ways you could check are:

  • Check if the AE process is running via OS command line
  • Have a CEP panel in AE auto-start and communicate with your external app via websockets
Adobe Expert
August 13, 2022

ummm...

if i get you correctly, then you wish to launch AE remotely. there's no AE API for that, but you can open it like any other process. you need to have some "listner" process running, which when gets a call launches a system command call for AE. (for example: "open c:/program files/adobe/after effects 2022/supporting files/afterfx.exe"

 

once open, you can have an AEGP plugin with an idle hook, that will be triggered once AE is done loading. then you can find your CEP command code and call that command from the AEGP.