Copy link to clipboard
Copied
via script - How to check if any project is opened or not. So, i could open project if it is not empty. How to check if any project is opened. How to known that no project is opened in after effects via extended script.
1 Correct answer
I think it depends. You could use this to see if a project file has been opened:
if (app.project.file == null){
// no project file open
}else{
// project file open
}
But that won't work in the case where you've opened a project file that had to be converted from an older version of AE, so there's technically no project file associated with the converted project. It might work for you though, depending on what your requirements are.
Copy link to clipboard
Copied
How to check when empty after effects with no projects is opened. Then how to known.
Copy link to clipboard
Copied
I think it depends. You could use this to see if a project file has been opened:
if (app.project.file == null){
// no project file open
}else{
// project file open
}
But that won't work in the case where you've opened a project file that had to be converted from an older version of AE, so there's technically no project file associated with the converted project. It might work for you though, depending on what your requirements are.
Copy link to clipboard
Copied
Thanks dan sir. I added extra try catch if any active item for safety thanks.

