Skip to content

Project object

app.project

Represents a Premiere Pro project. As of Premiere Pro 12.0, multiple projects may be open at the same time.


app.project.activeSequence

The currently active Sequence object, within the project.

A Sequence object, or 0 if no sequence is currently active.


app.project.cloudProjectlocalID

The ID of cloud project.

String; read/only.


app.project.documentID

A unique identifier for this project, in format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

String; read-only.


app.project.isCloudProject

Check whether the project is cloud project.

Boolean; read-only.


app.project.name

The name of the project.

String; read-only.


app.project.path

The file path of the project.

String; read-only.

Get a path of a curently active project

app.project.path; // /Users/USERNAME/Desktop/Project.prproj

app.project.rootItem

A ProjectItem object representing the “root” of the project.

A ProjectItem object; this will always be of type ProjectItemType_BIN.


app.project.sequences

The sequences within the project.

SequenceCollection object, read-only.


Project.addPropertyToProjectMetadataSchema()

Section titled “Project.addPropertyToProjectMetadataSchema()”

app.project.addPropertyToProjectMetadataSchema(propertyName, propertyLabel, propertyType)

Adds a new field of the specified type to Premiere Pro’s private project metadata schema.

ParameterTypeDescription
propertyNameStringA name of property to be added.
propertyLabelStringA label of property to be added.
propertyTypeIntegerMust be one of the following:
- 0 - Integer
- 1 - Real
- 2 - String
- 3 - Boolean

Returns true if successful, undefined if unsuccessful.


app.project.closeDocument(saveFirst, promptIfDirty)

Closes this project.

ParameterTypeDescription
saveFirstIntegerIf 1, the project will be saved before closing.
promptIfDirtyIntegerIf 1, the user will be asked whether they want to save changes first.

Returns 0 if successful.


app.project.consolidateDuplicates()

Invokes Premiere Pro’s “Consolidate Duplicate Footage” functionality, as available from the UI.

None.

Returns 0 if successful.


app.project.createNewSequence(sequenceName, sequenceID)

Creates a new Sequence object with the specified ID.

ParameterTypeDescription
sequenceNameStringA name of a sequence.
sequenceIDStringAn uniquely identifying ID for a new sequence.

Returns a Sequence object if creation was successful, or 0 if unsuccessful.


app.project.createNewSequenceFromClips(sequenceName, arrayOfProjectItems, [destinationBin])

Creates a new Sequence object with the given name, in the specified destination bin, and sequentially inserts project items into it.

ParameterTypeDescription
sequenceNameStringOptional. A name for a new sequence.
arrayOfProjectItemsArray of ProjectItem objectsAn array of project items to be inserted into sequence.
destinationBinProjectItem objectOptional. A bin to contain sequence.

Returns the newly-created Sequence object if successful; 0 if unsuccessful.


app.project.deleteSequence(sequence)

Deletes the specified Sequence object from the project.

ParameterTypeDescription
sequenceSequence objectA sequence to delete.

Returns true if successful, false if unsuccessful.


app.project.exportAAF(sequenceToExport, outputPath, mixdownVideo, explodeToMono, sampleRate, bitsPerSample, embedAudio, audioFileFormat, trimSources, handleFrames, presetPath, renderAudioEffects, includeClipCopies, preserveParentFolder)

Exports an AAF file of the specified Sequence object, using the specified settings.

ParameterTypeDescription
sequenceToExportSequence objectA sequence to export.
outputPathStringAn output path for .aaf file.
mixdownVideoIntegerIf 1, render video before export.
explodeToMonoIntegerIf 1, breaks out stereo tracks to mono.
sampleRateIntegerThe sample rate of output audio.
bitsPerSampleIntegerThe bits per sample of audio output.
embedAudioIntegerIf 1, audio is embedded, if 0, external.
audioFileFormatInteger0 is AIFF, 1 is WAV.
trimSourcesIntegerIf 1, trim and re-encode media before export; 0 exports the entire file.
handleFramesIntegerThe number of handle frames (from 0 to 1000).
presetPathStringA path to export preset (.epr) file.
renderAudioEffectsIntegerIf 1, render audio effects before export.
includeClipCopiesIntegerIf 1, include each copy of a clip.
preserveParentFolderIntegerIf 1, preserves the parent folder, in output.

Returns 0 if successful.


app.project.exportFinalCutProXML(outputPath, suppressUI)

Exports an FCP XML representation of the entire project, to the specified output path.

ParameterTypeDescription
outputPathStringAn output path for .xml file.
suppressUIIntegerIf 1, no warnings or alerts will be shown, during the export.

Returns 0 if successful.


app.project.exportOMF(sequence, outputPath, omfTitle, sampleRate, bitsPerSample, audioEncapsulated, audioFileFormat, trimAudioFiles, handleFrames, includePan)

Exports an OMF file of the specified Sequence object, using the specified settings.

ParameterTypeDescription
sequenceSequence objectThe sequence to be output.
filePathStringAn output path for .omf file.
omfTitleStringThe title of the OMF.
sampleRateThe sample rate of output audio.
bitsPerSampleThe bits per sample of audio output.
audioEncapsulatedIntegerIf 1, audio is embedded, if 0, external.
audioFileFormatInteger0 is AIFF, 1 is WAV.
trimAudioFilesInteger1 means yes, trim audio files.
handleFramesIntegerNumber of handle frames (from 0 to 1000).
includePanInteger1 means include pan info; 0 means don’t.

Returns 0 if successful.


app.project.exportTimeline(exportControllerName)

Exports the currently active Sequence object, using an Export Controller plug-in with the specified name.

ParameterTypeDescription
exportControllerNameStringThe name of the Export Controller plug-in to be used. To use the Premiere Pro SDK example Export Controller, the value would be “SDK Export Controller”.

Returns 0 if successful, or an error code if not.


app.project.getGraphicsWhiteLuminance()

Retrieves the current graphics white luminance value, for this project.

None.

Returns the currently selected graphics white value.


app.project.getInsertionBin()

Returns a ProjectItem object referencing the bin into which import will occur.

None.

Returns a ProjectItem object if successful, 0 if not.


app.project.getProjectPanelMetadata()

Returns the current layout of the Project panel.

None.

Returns a String representing the current Project panel layout, or 0 if unsuccessful.


app.project.getSharedLocation()

Returns the path to the location to which shared files are to be copied.

None.

Returns a String containing the path.


Project.getSupportedGraphicsWhiteLuminances()

Section titled “Project.getSupportedGraphicsWhiteLuminances()”

app.project.getSupportedGraphicsWhiteLuminances()

Retrieves the supported graphics white luminance values, for this project.

None.

Returns an array of graphics white settings supported by the project; Currently it returns (100, 203, 300)


app.project.importAEComps(path, compNames, [targetBin])

Imports specified Compositions (by name) from the containing After Effects .aep project file. You can specify a target bin within the containing project; otherwise, the Compositions will appear in the most recently targeted bin, within this project.

ParameterTypeDescription
pathStringA path to the After Effects .aep project file.
compNamesArray of stringsNames of compositions within the specified project, to be imported.
targetBinProjectItem objectOptional. The destination bin for this import.

Returns 0 if successful.


app.project.importAllAEComps(path, [targetBin])

Imports specified Compositions (by name) from the containing After Effects .aep project file. You can specify a target bin within the containing project; otherwise, the Compositions will appear in the most recently targeted bin, within this project.

ParameterTypeDescription
pathStringA path to After Effects .aep project file.
targetBinProjectItem objectOptional. The destination bin for this import.

Returns 0 if successful.


app.project.importFiles(filePaths, suppressUI, targetBin, importAsNumberedStills)

Imports media from the specified file paths.

ParameterTypeDescription
filePathsArray of stringsAn array of the file paths to be imported.
suppressUIBooleanWhether warning dialogs should be suppressed.
targetBinProjectItem objectThe bin into which the files should be imported.
importAsNumberedStillsBooleanWhether the file paths should be interpreted as a sequence of numbered stills.

Returns true if successful, false if not.


app.project.importSequences(path, sequenceIDs)

Imports an array of sequence objects (with specified sequenceIDs), from the specified project, into the current project.

ParameterTypeDescription
pathStringA path to a project file.
sequenceIDsArrayAn array of sequence IDs to import.

Returns 0 if successful.


app.project.isSharedLocationCopyEnabled()

Determines whether copying to a shared location is enabled, for this project.

None.

Returns true if copying is enabled; false if not.


app.project.newBarsAndTone(width, height, timeBase, PARNum, PARDen, audioSampleRate, name)

Creates a new Sequence object with the given name, based on the specified preset (.sqpreset file).

ParameterTypeDescription
widthInteger
heightInteger
timeBaseA timebase for a new project item.
PARNumIntegerPixel aspect ration numerator.
PARDenIntegerPixel aspect ration denominator.
audioSampleRateAudio sample rate.
nameStringName for a new project item.

Returns a ProjectItem object for the new bars and tone, or 0 if unsuccessful.


app.project.newSequence(name, pathToSequencePreset)

Creates a new Sequence object with the given name, based on the specified preset (.sqpreset file).

ParameterTypeDescription
nameStringName for a new sequence.
pathToSequencePresetStringA path to a preset .sqpreset file.

Returns a Sequence object, or 0 if unsuccessful.


app.project.openSequence(sequence.sequenceID)

Makes the Sequence object with the provided sequence ID, active. This will open the sequence in the Timeline panel.

ParameterTypeDescription
sequenceIDSequence.sequenceIDA valid sequence ID that should be opened.

Returns true if successful, false if not.


app.project.pauseGrowing(pause)

Pauses (and resumes) growing file capture.

ParameterTypeDescription
pauseIntegerIf 1, growing files are enabled.

Returns 0 if successful.


app.project.save()

Saves the project, at its current path.

None.

Returns 0 if successful.


app.project.saveAs(path)

Exports the current project to a new unique file path, opens the project from the new location, and closes the previously-opened (and identical) project.

ParameterTypeDescription
pathStringA path to a new file.

Returns 0 if successful, or an error code if not.


app.project.setEnableTranscodeOnIngest(state)

Controls the enablement of transcode-upon-ingest behavior, for the given project.

ParameterTypeDescription
stateBooleanThe desired state.

Returns true if successful.


app.project.setGraphicsWhiteLuminance(value)

Sets the current graphics white luminance value, for this project.

ParameterTypeDescription
valueIntegerThe value to be used; must be a value provided by Project.getSupportedGraphicsWhiteLuminances().

Returns true if successful.


app.project.setProjectPanelMetadata(layout)

Returns the current layout of the Project panel.

ParameterTypeDescription
layoutStringRepresents the desired Project panel layout. Note: The only known method for generating a valid layout string, is setting the Project panel as desired then using Project.getProjectPanelMetadata().

Returns 0 if unsuccessful.


app.project.setScratchDiskPath(newPath, whichScratchDiskPath)

Changes the specified scratch disk path to a new path.

ParameterTypeDescription
newPathStringA new path.
scratchDiskTypeScratchDiskType enumOne of:
- ScratchDiskType.FirstVideoCaptureFolder
- ScratchDiskType.FirstAudioCaptureFolder
- ScratchDiskType.FirstVideoPreviewFolder
- ScratchDiskType.FirstAudioPreviewFolder
- ScratchDiskType.FirstAutoSaveFolder
- ScratchDiskType.FirstCCLibrariesFolder
- ScratchDiskType.FirstCapsuleMediaFolder
- ScratchDiskType.FirstAudioCaptureFolder
- ScratchDiskType.FirstVideoPreviewFolder
- ScratchDiskType.FirstAudioPreviewFolder
- ScratchDiskType.FirstAutoSaveFolder
- ScratchDiskType.FirstCCLibrariesFolder
- ScratchDiskType.FirstCapsuleMediaFolder

Returns 0 if unsuccessful.