ComponentParam

Properties

Name
Type
Access
Min Version
Description
displayName
string
R
25.0
Returns the display name of the component param

Instance Methods

areKeyframesSupported

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

boolean

Returns bool whether keyframes are supported for this component parameter

createAddKeyframeAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Creates and returns an action object which can be used to add a keyframe component

Parameters

Name
Type
Description
inKeyFrame
Keyframe
-

createKeyframe

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

Creates and returns a keyframe initialised with the ComponentParam's type and passed in value. This throws if the passed in value is not compatible with the component param type

Parameters

Name
Type
Description
inValue
number or string or boolean or PointF or Color
Input could be number, string, boolean, PointF, or Color depend on effect param type

createRemoveKeyframeAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Returns an action which removes keyframe at specific time

Parameters

Name
Type
Description
inTime
TickTime
-
UpdateUI
boolean
-

createRemoveKeyframeRangeAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Returns an action which removes keyframe at specific time range

Parameters

Name
Type
Description
inTime
TickTime
-
outTime
TickTime
-
UpdateUI
boolean
-

createSetInterpolationAtKeyframeAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Returns an action which sets the interpolation mode of keyframe at the given time

Parameters

Name
Type
Description
inTime
TickTime
-
InterpolationMode
number
-
UpdateUI
boolean
-

createSetTimeVaryingAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Creates and returns an action object to set the component to be time varying

Parameters

Name
Type
Description
inTimeVarying
boolean
-

createSetValueAction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Action

Creates and returns an action object which can be used to set the value of a non-time varying component

Parameters

Name
Type
Description
inKeyFrame
Keyframe
-
inSafeForPlayback
boolean
-

findNearestKeyframe

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

Find sthe nearest key for the given time

Parameters

Name
Type
Description
inTime
TickTime
-
outTime
TickTime
-

findNextKeyframe

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

find the next keyframe for the given time

Parameters

Name
Type
Description
inTime
TickTime
-

findPreviousKeyframe

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

find the previous keyframe for the given time

Parameters

Name
Type
Description
inTime
TickTime
-

getKeyframeListAsTickTimes

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

TickTime[]

Get a list of tickTime for the keyframes of this component param

getKeyframePtr

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

Get the Keyframe at the given tickTime postion

Parameters

Name
Type
Description
time
TickTime
-

getStartValue

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Keyframe

Returned promise will be fullfilled with the start value (keyframe) of the component param

getValueAtTime

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

number | string | boolean | PointF | Color

Gets the value of component Param at the given time

Parameters

Name
Type
Description
time
TickTime
The time at which to get the value of the component param

isTimeVarying

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

boolean

Returns true if the parameter value varies over time (for the duration of the item)