Skip to main content
Inspiring
May 22, 2026

AEGP_GetNumProjects still return 1 if I close the project

  • May 22, 2026
  • 0 replies
  • 3 views

I was trying to figure out if any project was loaded using the call AEGP_GetNumProjects in the IdleHook. However, once a project is loaded, this function only returns 1, even if I close the project. The only situation where I got it to return 0 was when I tried to load an old project that failed to load.

 

Pretty simple to replicate, just call AEGP_GetNumProjects from the IdleHook and check the returned value after closing the project from “File/Close Project”.

 

I’m using the windows version of AE 2026 v26.2.1 (build 2). But I suppose this is common to other versions too.