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
Name | Description |
---|---|
constructor(scene, prop) | Initializes a new instance of the BindPoint class. |
Parameters:
Name | Type | Description |
---|---|---|
scene | Scene | The scene that contains the animation. |
prop | Property | Property. |
Result:
getProperty
Name | Description |
---|---|
getProperty() | Gets the property associated with the CurveMapping |
Result:
setProperty
Name | Description |
---|---|
setProperty(value) | Gets the property associated with the CurveMapping |
Result:
getChannelsCount
Name | Description |
---|---|
getChannelsCount() | Gets the total number of property channels defined in this animation curve mapping. |
Result: Number
getName
Name | Description |
---|---|
getName() | Gets or sets the name. The name. |
Result: Number
setName
Name | Description |
---|---|
setName(value) | Gets or sets the name. The name. |
Result: Number
getProperties
Name | Description |
---|---|
getProperties() | Gets the collection of all properties. |
Result: Number
get
Name | Description |
---|---|
get(channelName) |
Result: Number
getKeyframeSequence
Name | Description |
---|---|
getKeyframeSequence(channelName) | Gets the first keyframe sequence in specified channel |
Parameters:
Name | Type | Description |
---|---|---|
channelName | String | The channel name to find |
Result: KeyframeSequence
getKeyframeSequences
Name | Description |
---|---|
getKeyframeSequences(channelName) | Gets all keyframe sequences in specified channel |
Parameters:
Name | Type | Description |
---|---|---|
channelName | String | The channel name to find |
Result: 0, Culture=neutral, PublicKeyToken=f071c641d0b4582b]]
createKeyframeSequence
Name | Description |
---|---|
createKeyframeSequence(name) | Creates a new curve and connects it to the first channel of the curve mapping |
Parameters:
Name | Type | Description |
---|---|---|
name | String | The new sequence’s name. |
Result: KeyframeSequence
bindKeyframeSequence
Name | Description |
---|---|
bindKeyframeSequence(channelName, sequence) | Bind the keyframe sequence to specified channel |
Parameters:
Name | Type | Description |
---|---|---|
channelName | String | Which channel the keyframe sequence will be bound to |
sequence | KeyframeSequence | The keyframe sequence to bind |
Result: KeyframeSequence
getChannel
Name | Description |
---|---|
getChannel(channelName) | Gets channel by given name |
Parameters:
Name | Type | Description |
---|---|---|
channelName | String | The channel name to find |
Result: AnimationChannel
addChannel
Name | Description |
---|---|
addChannel(name, value) | Adds the specified channel property. |
Parameters:
Name | Type | Description |
---|---|---|
name | String | Name. |
value | Object | Value. |
Result: boolean
addChannel
Name | Description |
---|---|
addChannel(name, type, value) | Adds the specified channel property. |
Parameters:
Name | Type | Description |
---|---|---|
name | String | Name. |
type | Class | Type. |
value | Object | Value. |
Result: boolean
resetChannels
Name | Description |
---|---|
resetChannels() | Empties the property channels of this animation curve mapping. |
Result: boolean
toString
Name | Description |
---|---|
toString() | Formats object to string |
Result: String
removeProperty
Name | Description |
---|---|
removeProperty(property) | Removes a dynamic property. |
Parameters:
Name | Type | Description |
---|---|---|
property | Property | Which property to remove |
Result: boolean
removeProperty
Name | Description |
---|---|
removeProperty(property) | Remove the specified property identified by name |
Parameters:
Name | Type | Description |
---|---|---|
propert | String | null |
Result: boolean
getProperty
Name | Description |
---|---|
getProperty(property) | Get the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
Result: Object
setProperty
Name | Description |
---|---|
setProperty(property, value) | Sets the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
value | Object | The value of the property |
Result: Object
findProperty
Name | Description |
---|---|
findProperty(propertyName) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Parameters:
Name | Type | Description |
---|---|---|
propertyName | String | Property name. |
Result: Property