Class MorphTargetChannel

MorphTargetChannel class

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

public class MorphTargetChannel : A3DObject

Constructors

NameDescription
MorphTargetChannel()Initializes a new instance of the MorphTargetChannel class.
MorphTargetChannel(string)Initializes a new instance of the MorphTargetChannel class.

Properties

NameDescription
ChannelWeight { get; set; }Gets or sets the deformer weight of this channel. The weight is between 0.0 and 1.0
Item { get; set; }
virtual Name { get; set; }Gets or sets the name.(Inherited from A3DObject.)
Properties { get; }Gets the collection of all properties.(Inherited from A3DObject.)
Targets { get; }Gets all targets associated with the channel.
Weights { get; }Gets the full weight values of target geometries.

Methods

NameDescription
FindProperty(string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)(Inherited from A3DObject.)
GetProperty(string)Get the value of specified property(Inherited from A3DObject.)
GetWeight(Shape)Gets the weight for the specified target, if the target is not belongs to this channel, default value 0 is returned.
RemoveProperty(Property)Removes a dynamic property.(Inherited from A3DObject.)
RemoveProperty(string)Remove the specified property identified by name(Inherited from A3DObject.)
SetProperty(string, object)Sets the value of specified property(Inherited from A3DObject.)
SetWeight(Shape, double)Sets the weight for the specified target, default value is 1, range should between 0~1

Fields

NameDescription
const DefaultWeightDefault weight for morph target.

Remarks

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

See Also