Adobe 12040118 Using Help - Page 87
FootageItem file attribute, FootageItem replace() method, FootageItem replaceWithPlaceholder() method
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 87 highlights
Help Using Help Reference Back 87 FootageItem file attribute app.project.item(index).file Description The file attribute is the File object of the footage's source file. If the FootageItem's mainSource is a FileSource, this is the same thing as mainSource.file Otherwise it is NULL. Type File object (or null if mainSoure is not a FileSource); read only. FootageItem mainSource attribute app.project.item(index).mainSource. Description The footage item mainSource attribute contains all of the settings related to that footage item, including those that are normally accessed via the Interpret Footage dialog box. See also FootageSource (and its three types: SolidSource, FileSource, and PlaceholderSource). The attribute is read-only, but it can be changed by calling any of the FootageItem methods that change the footage source: replace(), replaceWithSequence(), replaceWithSolid(), and replaceWithPlaceholder(). Type FootageSource. Read-only. FootageItem replace() method app.project.item(index).replace(file) Description The FootageItem replace() method replaces the FootageItem with the file given as a parameter. In After Effects 6.5, in addition to loading the given file, this method does the following: • Sets the mainSource to a new value reflecting the contents of the new file. • Sets the name, width, height, frameDuration, and duration attributes, defined in the base AVItem class, based on the contents of the file. • Preserves interpretation parameters from the previous mainSource. • Guesses the alpha if replace() is called with a file that has an unlabeled alpha channeI. Parameters file File object FootageItem replaceWithPlaceholder() method app.project.item(index).replaceWithPlaceholder(name, width, height, frameRate, duration) Using Help Back 87