KeyframeSequence

KeyframeSequence class

The sequence of key-frames, it describes the transformation of a sampled value over time.

Methods

constructor

NameDescription
constructor(name)Initializes a new instance of the KeyframeSequence class.

Parameters:

NameTypeDescription
nameStringName

Result:


constructor_overload

NameDescription
constructor_overload()Initializes a new instance of the KeyframeSequence class.

Result:


getBindPoint

NameDescription
getBindPoint()Gets the property bind point which owns this curve

Result:


getKeyFrames

NameDescription
getKeyFrames()Gets the key frames of this curve. The keys.

Result:


getPostBehavior

NameDescription
getPostBehavior()Gets the post behavior indicates what the sampled value should be after the last key frame.

Result:


getPreBehavior

NameDescription
getPreBehavior()Gets the pre behavior indicates what the sampled value should be before the first key.

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


add

NameDescription
add(time, value)Create a new key frame with specified value

Parameters:

NameTypeDescription
timeNumberTime position(measured in seconds)
valueNumberThe value at this time position

Result:


add

NameDescription
add(time, value, interpolation)Create a new key frame with specified value

Parameters:

NameTypeDescription
timeNumberTime position(measured in seconds)
valueNumberThe value at this time position
interpolationInterpolationInterpolation

Result:


reset

NameDescription
reset()Removes all key frames and reset the post/pre behaviors.

Result:


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property


iterator

NameDescription
iterator()Reserved for internal use.

Result: Property