Project
Properties
null if no item is currently selected or if multiple items are selected.0 (Adobe's built-in color management), 1 (OCIO, OpenColor IO).true if Compensate for Scene-referred Profiles should be enabled for this project; otherwise false.FramesCountType.FC_START_0/FC_START_1 for framesCountType.extendscript or javascript-1.0.displayStartFrame to 0.true if using Feet + Frames; false if using Frames.true if linear blending should be used for this project; otherwise false.true if Linearize Working Space should be enabled for this project; otherwise false.0 (Trilinear), 1 (Tetrahedral).colorManagementSystem is set to OCIO. Empty string if none is set.true, thumbnail views use the transparency checkerboard pattern.listColorProfiles() to get valid values.true if the project has been modified since the last save; otherwise false.undefined if there is no text selection. There is no way to set the text selection via scripting; this is read-only.font, a Font object, and usedAt, an array of objects each composed of layerID (a Layer's id) and layerTimeD (the time, in Layer Time, at which the font is used). Use layerByID() to retrieve the layers.Instance Methods
autoFixExpressions
Returns: boolean
Since: 27.0
Automatically replaces text found in broken expressions in the project, if the new text causes the expression to evaluate without errors.
Parameters
close
Returns: boolean
Since: 27.0
Closes the project, with the option to save changes automatically, prompt the user to save, or close without saving. Returns true on success; false if the file has never been saved, the user is prompted, and cancels.
Parameters
CloseOptions.DO_NOT_SAVE_CHANGES, CloseOptions.PROMPT_TO_SAVE_CHANGES, or CloseOptions.SAVE_CHANGES.closeTeamProject
Returns: boolean
Since: 27.0
Closes a currently open team project. true if successfully closed.
consolidateFootage
Returns: number
Since: 27.0
Consolidates all footage in the project (same as File > Consolidate All Footage). Returns the total number of footage items removed.
convertTeamProjectToProject
Returns: boolean
Since: 27.0
Converts a team project to an After Effects project on local disk. true if successfully converted.
Parameters
.aep or .aet (.aepx not supported).importFile
Returns: FootageItem
Since: 27.0
Imports the file specified in the specified ImportOptions object, using the specified options (same as the File > Import File command). Creates and returns a new FootageItem object from the file, and adds it to the project's items array.
Parameters
importFileWithDialog
Returns: Array
Since: 27.0
Shows an Import File dialog box (same as File > Import > File). Returns an array of Item objects created during import, or null if the user cancels the dialog box.
importPlaceholder
Returns: FootageItem
Since: 27.0
Creates and returns a new PlaceholderItem, adding it to the project's items array (same as File > Import > Placeholder).
Parameters
[4..30000].[4..30000].[1.0..99.0].[0.0..10800.0].isAnyTeamProjectOpen
Returns: boolean
Since: 27.0
true if any team project is currently open.
isLoggedInToTeamProject
Returns: boolean
Since: 27.0
true if After Effects is currently logged into the team project server.
isResolveCommandEnabled
Returns: boolean
Since: 27.0
true if the team projects Resolve command is enabled.
isShareCommandEnabled
Returns: boolean
Since: 27.0
true if the team projects Share command is enabled.
isSyncCommandEnabled
Returns: boolean
Since: 27.0
true if the team projects Sync command is enabled.
isTeamProjectEnabled
Returns: boolean
Since: 27.0
true if team projects are enabled for After Effects (almost always true).
isTeamProjectOpen
Returns: boolean
Since: 27.0
Checks whether the specified team project is currently open.
Parameters
item
Returns: Item
Since: 27.0
Retrieves an item at a specified index position; the first item is at index 1.
Parameters
itemByID
Returns: Item
Since: 27.0
Retrieves an item by its Item ID.
Parameters
layerByID
Returns: Layer
Since: 27.0
Returns the Layer with the given ID in the project, or null if none exists. Non-valid IDs throw an exception.
Parameters
listColorProfiles
Returns: string[]
Since: 27.0
Returns an array of color profile descriptions that can be set as the project's color working space.
listTeamProjects
Returns: string[]
Since: 27.0
Returns an array of the name strings for all team projects available for the current user. Archived team projects are not included.
newTeamProject
Returns: boolean
Since: 27.0
Creates a new team project. true if successfully created.
Parameters
openTeamProject
Returns: boolean
Since: 27.0
Opens a team project. true if successfully opened.
Parameters
reduceProject
Returns: number
Since: 27.0
Removes all items from the project except those specified (same as File > Reduce Project). Returns the total number of items removed.
Parameters
removeUnusedFootage
Returns: number
Since: 27.0
Removes unused footage from the project (same as File > Remove Unused Footage). Returns the total number of FootageItem objects removed.
replaceFont
Returns: void
Since: 27.0
Replaces all usages of the fromFont Font object with the toFont Font object throughout the project, including on TextDocuments with mixed styling. This operation is not undoable.
Parameters
false. By default, a fallback font with the necessary glyphs is substituted if toFont is missing glyphs for the affected text. Set to true to disable this fallback, which may result in missing glyphs.resolveConflict
Returns: boolean
Since: 27.0
Resolves a conflict between the open team project and the server version, using the specified resolution method. true if successful.
Parameters
ResolveType.ACCEPT_THEIRS, ResolveType.ACCEPT_YOURS, or ResolveType.ACCEPT_THEIRS_AND_COPY.save
Returns: boolean
Since: 27.0
Saves the project (same as File > Save or File > Save As). If never previously saved and no file is given, prompts the user for a location and name.
Parameters
saveWithDialog
Returns: boolean
Since: 27.0
Shows the Save dialog box; the user names a file/location and saves, or cancels. true if the project was saved.
setDefaultImportFolder
Returns: boolean
Since: 27.0
Sets the folder shown in the file import dialog, as an override until called with no argument or After Effects quits. true if successful.
Parameters
shareTeamProject
Returns: boolean
Since: 27.0
Shares the currently open team project. true if successfully shared.
Parameters
showWindow
Returns: boolean
Since: 27.0
Shows or hides the Project panel.
Parameters
true, shows the Project panel; when false, hides it.syncTeamProject
Returns: boolean
Since: 27.0
Syncs the currently open team project. true if successfully synced.