Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 2.06 KB

filesource.rst

File metadata and controls

81 lines (47 loc) · 2.06 KB

FileSource object

 app.project.item(index).mainSource
 app.project.item(index).proxySource

Description

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.


Attributes

FileSource.file

 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 <AVItem.proxySource> of an AVItem <AVItem>, call setProxy() <AVItem.setProxy> or setProxyWithSequence() <AVItem.setProxyWithSequence>.
  • If this FileSource is a mainSource <FootageItem.mainSource> of a FootageItem <FootageItem>, call replace() <FootageItem.replace> or replaceWithSequence() <FootageItem.replaceWithSequence>.

Type

File object; read-only.


FileSource.missingFootagePath

 app.project.item(index).mainSource.missingFootagePath
 app.project.item(index).proxySource.missingFootagePath

Description

The path and filename of footage that is missing from this asset. See also AVItem.footageMissing.

Type

String; read-only.


Methods

FileSource.reload()

app.project.item(index).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.