Skip to content

ComponentParam object

app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index]

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index]

The ComponentParam object represents a parameter associated with a component, applied to a TrackItem object.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].displayName

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].displayName

The name of the component parameter, as it is displayed to the user. Localized.

String; read-only.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].addKey(time)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].addKey(time)

Adds a keyframe to the component parameter stream, at the specified time. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
timeTime objectWhen the keyframe should be added.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].areKeyframesSupported()

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].areKeyframesSupported()

Retrieves whether keyframes are supported, for this component parameter.

None.

Returns true if keyframes are supported; false if not.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].findNearestKey(timeToCheck, threshold)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].findNearestKey(timeToCheck, threshold)

Sets whether the component parameter varies, over time. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
timeToCheckStart search from a given time
thresholdIntegerA temporal distance, in either direction, in ticks.

Returns a Time value, indicating when the closest keyframe is.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].findNextKey(timeToCheck)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].findNextKey(timeToCheck)

Returns the keyframe temporally subsequent to the provided timeToCheck. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
timeToCheckStart search from a given time.

Returns a Time value, indicating when the closest keyframe is, or 0 if there is no available subsequent keyframe.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].findPreviousKey(timeToCheck)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].findPreviousKey(timeToCheck)

Returns the keyframe temporally previous to the provided timeToCheck. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
timeToCheckStart search from a given time.

Returns a Time value, indicating when the closest keyframe is, or 0 if there is no available previous keyframe.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].getColorValue()

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].getColorValue()

Obtains the value of the component parameter stream. Note: This can only work on parameters which are not time-variant.

None.

Returns a Color containing the values found in the component parameter stream, or 0 if unsuccessful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].getKeys()

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].getKeys()

Returns an array of all keyframes on the timeToCheck component parameter. Note: This can only be set on parameters which support keyframing.

None.

Returns an array of Time values, indicating at what time each keyframe occurs, or 0 if no keyframes are available.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].getValue()

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].getValue()

Obtains the value of the component parameter stream. Note: This can only work on parameters which are not time-variant.

None.

Returns the value of the component parameter stream; the return varies with stream type.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].getValueAtKey(time)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].getValueAtKey(time)

Retrieves the value of the component parameter stream, at the specified keyframe time. Note: Can only be used with keyframeable parameter streams.

ParameterTypeDescription
timeTime objectA time from which the keyframe value should be retrieved.

Returns the value of the component parameter stream at time, or 0 if unsuccessful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].getValueAtTime(time)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].getValueAtTime(time)

Retrieves the value of the component parameter stream, at the specified time. If the value is between two keyframes then interpolation takes place.

ParameterTypeDescription
timeTime objectA time from which the keyframe value should be retrieved.

Returns the value of the component parameter stream at time, or 0 if unsuccessful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].isTimeVarying()

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].isTimeVarying()

Retrieves whether the component parameter varies, over time.

None.

Returns true if the parameter varies over time; false if not.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].removeKey(time)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].removeKey(time)

Removes a keyframe on the component parameter stream, at the specified time. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
timeTime objectA time value, indicating when the keyframe should be removed.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].removeKeyRange(startTime, endTime)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].removeKeyRange(startTime, endTime)

Removes all keyframes from the component parameter stream, between the specified times. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
startTimeTime objectThe times (inclusive) to begin the removal of keyframes.
endTimeTime objectThe times to end the removal of keyframes.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].setColorValue(alpha, red, green, blue, updateUI)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].setColorValue(alpha, red, green, blue, updateUI)

Sets the values within a component parameter stream, representing a Color.

ParameterTypeDescription
alphaIntegerAlpha value.
redIntegerRed value.
greenIntegerGreen value.
blueIntegerBlue value.
updateUIIntegerIf 1, will force Premiere Pro to update UI, after updating the value of the stream.

Returns 0 if successful.


ComponentParam.setInterpolationTypeAtKey()

Section titled “ComponentParam.setInterpolationTypeAtKey()”

app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].setInterpolationTypeAtKey(time, interpretationType, [updateUI])

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].setInterpolationTypeAtKey(time, interpretationType, [updateUI])

Specifies the interpolation type to be assigned to the keyframe, at the specified time. Note: It Can only be used with keyframeable parameter streams.

ParameterTypeDescription
timeTime objectA time of keyframe to modify.
interpolationTypeInterpolation Type EnumOne of:
- 0 - KF_Interp_Mode_Linear
- 1 - kfInterpMode_EaseIn_Obsolete
- 2 - kfInterpMode_EaseOut_Obsolete
- 3 - kfInterpMode_EaseInEaseOut_Obsolete
- 4 - KF_Interp_Mode_Hold
- 5 - KF_Interp_Mode_Bezier
- 6 - KF_Interp_Mode_Time
- 7 - kfInterpMode_TimeTransitionStart
- 8 - kfInterpMode_TimeTransitionEnd
updateUIBooleanWhether to update UI afterward.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].setTimeVarying(varying)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].setTimeVarying(varying)

Sets whether the component parameter varies, over time. Note: This can only be set on parameters which support keyframing.

ParameterTypeDescription
varyingBooleanIf true, component parameter will vary over time; if false, it won’t.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].setValue(value, updateUI)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].setValue(value, updateUI)

Sets the value of the component parameter stream. Note: This can only work on parameters which are not time-variant.

ParameterTypeDescription
valueMust be of the appropriate type for the component parameter stream.
updateUIIntegerIf 1, will force Premiere Pro to update UI, after updating the value of the stream.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].components[index].properties[index].setValueAtKey(time, value, updateUI)

app.project.sequences[index].videoTracks[index].clips[index].components[index].properties[index].setValueAtKey(time, value, updateUI)

Sets the value of the component parameter stream, at the specified keyframe time. Note: Can only be used with keyframeable parameter streams.

ParameterTypeDescription
timeTime objectA time at which the keyframe value should be set.
valueA value to be set.
updateUIIntegerIf 1, will force Premiere Pro to update UI, after updating the value of the stream.

Returns 0 if successful.