BindPoint

BindPoint class

A BindPoint is usually created on an object’s property, some property types contains multiple component fields(like a Vector3 field), BindPoint will generate channel for each component field and connects the field to one or more keyframe sequence instance(s) through the channels.

Methods

constructor

NameDescription
constructor(scene, prop)Initializes a new instance of the BindPoint class.

Parameters:

NameTypeDescription
sceneSceneThe scene that contains the animation.
propPropertyProperty.

Result:


getProperty

NameDescription
getProperty()Gets the property associated with the CurveMapping

Result:


setProperty

NameDescription
setProperty(value)Gets the property associated with the CurveMapping

Result:


getChannelsCount

NameDescription
getChannelsCount()Gets the total number of property channels defined in this animation curve mapping.

Result: Number


getName

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

Result: Number


setName

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

Result: Number


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result: Number


get

NameDescription
get(channelName)

Result: Number


getKeyframeSequence

NameDescription
getKeyframeSequence(channelName)Gets the first keyframe sequence in specified channel

Parameters:

NameTypeDescription
channelNameStringThe channel name to find

Result: KeyframeSequence


getKeyframeSequences

NameDescription
getKeyframeSequences(channelName)Gets all keyframe sequences in specified channel

Parameters:

NameTypeDescription
channelNameStringThe channel name to find

Result: 0, Culture=neutral, PublicKeyToken=f071c641d0b4582b]]


createKeyframeSequence

NameDescription
createKeyframeSequence(name)Creates a new curve and connects it to the first channel of the curve mapping

Parameters:

NameTypeDescription
nameStringThe new sequence’s name.

Result: KeyframeSequence


bindKeyframeSequence

NameDescription
bindKeyframeSequence(channelName, sequence)Bind the keyframe sequence to specified channel

Parameters:

NameTypeDescription
channelNameStringWhich channel the keyframe sequence will be bound to
sequenceKeyframeSequenceThe keyframe sequence to bind

Result: KeyframeSequence


getChannel

NameDescription
getChannel(channelName)Gets channel by given name

Parameters:

NameTypeDescription
channelNameStringThe channel name to find

Result: AnimationChannel


addChannel

NameDescription
addChannel(name, value)Adds the specified channel property.

Parameters:

NameTypeDescription
nameStringName.
valueObjectValue.

Result: boolean


addChannel

NameDescription
addChannel(name, type, value)Adds the specified channel property.

Parameters:

NameTypeDescription
nameStringName.
typeClassType.
valueObjectValue.

Result: boolean


resetChannels

NameDescription
resetChannels()Empties the property channels of this animation curve mapping.

Result: boolean


toString

NameDescription
toString()Formats object to string

Result: String


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