FileSource object
The FileSource object describes footage that comes from a file.
- FileSource is a subclass of FootageSource. All methods and attributes of FootageSource, in addition to those listed below, are available when working with FileSource. See “FootageSource object” on page 69.
Syntax:
app.project.item(index).mainSource
app.project.item(index).proxySource
Attribute List
| Attribute | Description |
|---|---|
| file | The file that defines this asset. |
| missingFootagePath | The file that contains footage missing from this asset. |
Method List
| Method | Description |
|---|---|
| reload() | Reloads the asset from the file, if it is a mainSource of a FootageItem. |
Detailed Descriptions
file attribute
Syntax:
app.project.item(index).mainSource.file
app.project.item(index).proxySource.file
Description: The ExtendScript File object for the file that defines this asset. To change the value:
- If this FileSource is a proxySource of an AVItem, call setProxy() or setProxyWithSequence().
- If this FileSource is a mainSource of a FootageItem, call replace() or replaceWithSequence().
Type: File object read-only
missingFootagePath attribute
Syntax:
app.project.item(index).mainSource.file.missingFootagePath
app.project.item(index).proxySource.file.missingFootagePath
Description: The path and filename of footage that is missing from this asset. See also “AVItem footageMissing attribute” on page 31.
Type: String read-only
reload() method
Syntax:
app.project.item(index).mainSource.file.mainSource.reload()
Description: Reloads the asset from the file. This method can be called only on a mainSource, not a proxySource.
Parameters: None.
Returns: Nothing.