Free Function Friday getCurComp

“Welcome to Free Function Friday episode 22, getCurComp. The function this week is very simple and short. It just condenses a few lines into a single function for convenience. When trying to check for the currently open comp in a project it can be simply called by typing app.project.activeItem;. This would return the actively selected item in the project or the currently open composition depending on which panel is active. We will be adding an if statement to check and make sure it returns only compItems, or null so we can verify the results. This will prevent any other item in the project, like a FolderItem or FootageItem from being returned by mistake.” – David Torno | Pro Video Coalition

Click Here to Learn More | Click Here to Buy Adobe After Effects