MFnComponent

Base Class

MFnBase

Constants

None.

Static Methods

None.

Constructors

Signature Parameters Description
MFnComponent()   Default constructor. Returns a new, empty MFnComponent object.
MFnComponent(component) component - MObject Returns a new MFnComponent function set, attached to the specified component.

Object Methods

Signature Parameters Returns Description
isEqual(other) other - MObject bool
Returns true if other refers to the same component as the one to which the function set is currently attached.
weight(index) index - int MWeight
Returns the weight associated with the specified element, where index can range from 0 to elementCount-1.

Object Attributes

Name Type Access Description
componentType MFn Type constant R Type of the component.
elementCount int R Number of elements in the component.
hasWeights bool R True if the component has weights associated with its elements.
isComplete bool RW Marking a component as complete means that it represents a full set of indices from 0 to numElements()-1
isEmpty bool R True if the component contains no elements.

Sequence Support

None.

Number Support

None.

© 2011 Autodesk, Inc. All rights reserved.