AnimationChannel class

AnimationChannel class

A channel maps property’s component field to a set of keyframe sequences

Inheritance: AnimationChannelKeyframeSequenceA3DObject

The AnimationChannel type exposes the following members:

Properties

PropertyDescription
nameGets or sets the name.
propertiesGets the collection of all properties.
bind_pointGets the property bind point which owns this curve
key_framesGets the key frames of this curve.
post_behaviorGets the post behavior indicates what the sampled value should be after the last key frame.
pre_behaviorGets the pre behavior indicates what the sampled value should be before the first key.
component_typeGets the component field’s type
default_valueGets or sets the Default value of the channel.
If a channel has no keyframe sequences connected, the default value will be used during the animation evaluation.
A real scenario: Animation only animates a node’s x coordinate, the y and z are not changed,
then the default value will be used during full translation evaluation.
keyframe_sequenceGets associated keyframe sequence inside this channel

Methods

MethodDescription
remove_property(self, property)Removes a dynamic property.
remove_property(self, property)Remove the specified property identified by name
add(self, time, value)Create a new key frame with specified value
add(self, time, value, interpolation)Create a new key frame with specified value
get_property(self, property)Get the value of specified property
set_property(self, property, value)Sets the value of specified property
find_property(self, property_name)Finds the property.
It can be a dynamic property (Created by CreateDynamicProperty/SetProperty)
or native property(Identified by its name)
reset(self)Removes all key frames and reset the post/pre behaviors.

See Also