MorphTargetChannel class

MorphTargetChannel class

A MorphTargetChannel is used by MorphTargetDeformer to organize the target geometries. Some file formats like FBX support multiple channels in parallel.

Inheritance: MorphTargetChannelA3DObject

The MorphTargetChannel type exposes the following members:

Constructors

ConstructorDescription
__init__(self, name)Initializes a new instance of the MorphTargetChannel class.
__init__(self)Initializes a new instance of the MorphTargetChannel class.

Properties

PropertyDescription
nameGets or sets the name.
propertiesGets the collection of all properties.
weightsGets the full weight values of target geometries.
channel_weightGets or sets the deformer weight of this channel.
The weight is between 0.0 and 1.0
targetsGets all targets associated with the channel.
DEFAULT_WEIGHTDefault weight for morph target.

Methods

MethodDescription
remove_property(self, property)Removes a dynamic property.
remove_property(self, property)Remove the specified property identified by name
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)
get_weight(self, target)Gets the weight for the specified target, if the target is not belongs to this channel, default value 0 is returned.
set_weight(self, target, weight)Sets the weight for the specified target, default value is 1, range should between 0~1

Remarks

Weight is between 0 and 1.0, and default weight for target is 0.0;

See Also