Skip to content

footagesource

app.project.item(index).mainSource

app.project.item(index).proxySource

The FootageSource object holds information describing the source of some footage. It is used as the mainSource of a FootageItem object, or the proxySource of a CompItem object or FootageItem.

FootageSource is the base class for SolidSource object, so FootageSource attributes and methods are available when working with SolidSource objects.


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

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

Defines how the alpha information in the footage is interpreted. If hasAlpha is false, this attribute has no relevant meaning.

An Alpha Mode enumerated value; (read/write). One of:

  • AlphaMode.IGNORE
  • AlphaMode.STRAIGHT
  • AlphaMode.PREMULTIPLIED

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

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

A frame rate to use instead of the nativeFrameRate value. If set to 0, the nativeFrameRate is used instead. It is an error to set this value if FootageSource.isStill is true. It is an error to set this value to 0 if removePulldown is not set to PulldownPhase.OFF. If this is 0 when you set removePulldown to a value other than PulldownPhase.OFF, then this is automatically set to the value of nativeFrameRate.

Floating-point value, in the range [0.0..99.0]; read/write.


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

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

The effective frame rate as displayed and rendered in compositions by After Effects. If removePulldown is PulldownPhase.OFF, then this is the same as the conformFrameRate (if non-zero) or the nativeFrameRate (if conformFrameRate is 0). If removePulldown is not PulldownPhase.OFF, this is conformFrameRate * 0.8, the effective frame rate after removing 1 of every 5 frames.

Floating-point value, in the range [0.0..99.0]; read-only.


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

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

How the fields are to be separated in non-still footage. It is an error to set this attribute if isStill is true. It is an error to set this value to FieldSeparationType.OFF if removePulldown is not PulldownPhase.OFF.

A FieldSeparationType enumerated value; read/write. One of:

  • FieldSeparationType.OFF
  • FieldSeparationType.UPPER_FIELD_FIRST
  • FieldSeparationType.LOWER_FIELD_FIRST

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

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

When true, the footage has an alpha component. In this case, the attributes alphaMode, invertAlpha, and premulColor have valid values. When false, those attributes have no relevant meaning for the footage.

Boolean; read-only.


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

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

When true, After Effects uses special algorithms to determine how to perform high-quality field separation. It is an error to set this attribute if isStill is true, or if fieldSeparationType is FieldSeparationType.OFF.

Boolean; read/write.


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

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

When true, an alpha channel in a footage clip or proxy should be inverted. This attribute is valid only if an alpha is present. If hasAlpha is false, or if alphaMode is AlphaMode.IGNORE, this attribute is ignored.

Boolean; read/write.


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

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

When true the footage is still; When false, it has a time-based component. Examples of still footage are JPEG files, solids, and placeholders with a duration of 0. Examples of non-still footage are movie files, sound files, sequences, and placeholders of non-zero duration.

Boolean; read-only.


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

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

The number of times that the footage is to be played consecutively when used in a composition. It is an error to set this attribute if isStill is true.

Integer, in the range [1..9999]; default is 1; read/write.


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

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

The native frame rate of the footage.

Floating-point value; read-only.


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

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

The color to be premultiplied. This attribute is valid only if the alphaMode is alphaMode.PREMULTIPLIED.

Array of three floating-point values, [R, G, B], in the range [0.0..1.0]; read/write.


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

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

How the pulldowns are to be removed when field separation is used. It is an error to set this attribute if isStill is true. It is an error to attempt to set this to a value other than PulldownPhase.OFF in the case where fieldSeparationType is FieldSeparationType.OFF.

A PulldownPhase enumerated value; read/write. One of:

  • PulldownPhase.RemovePulldown.OFF
  • PulldownPhase.RemovePulldown.WSSWW
  • PulldownPhase.RemovePulldown.SSWWW
  • PulldownPhase.RemovePulldown.SWWWS
  • PulldownPhase.RemovePulldown.WWWSS
  • PulldownPhase.RemovePulldown.WWSSW
  • PulldownPhase.RemovePulldown.WSSWW_24P_ADVANCE
  • PulldownPhase.RemovePulldown.SSWWW_24P_ADVANCE
  • PulldownPhase.RemovePulldown.SWWWS_24P_ADVANCE
  • PulldownPhase.RemovePulldown.WWWSS_24P_ADVANCE
  • PulldownPhase.RemovePulldown.WWSSW_24P_ADVANCE

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

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

Sets alphaMode, premulColor, and invertAlpha to the best estimates for this footage source. If hasAlpha is false, no change is made.

None.

Nothing.


app.project.item(index).mainSource.guessPulldown(method)

app.project.item(index).proxySource.guessPulldown(method)

Sets fieldSeparationType and removePulldown to the best estimates for this footage source. If isStill is true, no change is made.

ParameterTypeDescription
methodPulldownMethod enum.The method to use for estimation. One of:
- PulldownMethod.PULLDOWN_3_2
- PulldownMethod.ADVANCE_24P

Nothing.