app.project.items.addComp(name,width,height,pixelAspect,duration,frameRate)
Description
Creates a new composition. Creates and returns a new CompItem object and adds it to this collection.
If the ItemCollection belongs to the project or the root folder, then the new item’s parentFolder is the root folder. If the ItemCollection belongs to any other folder, the new item’s parentFolder is that FolderItem.
Parameters
name A string containing the name of the composition.
width The width of the composition in pixels, an integer in the range [4..30000].
height The height of the composition in pixels, an integer in the range [4..30000].
pixelAspect The pixel aspect ratio of the composition, a floating-point value in the range [0.01..100.0].
duration The duration of the composition in seconds, a floating-point value in the range [0.0..10800.0].
frameRate The frame rate of the composition, a floating-point value in the range [1.0..99.0]
Returns
CompItem object.