Python API 2.0 Reference
OpenMaya.MFnComponent Class Reference
+ Inheritance diagram for OpenMaya.MFnComponent:

Public Member Functions

def __init__ ()
 
def isEqual ()
 
def weight ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
def __init__ ()
 
def hasObj ()
 
def object ()
 
def setObject ()
 
def type ()
 

Static Public Member Functions

def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnBase
def __new__ ()
 

Properties

 componentType = property(...)
 
 elementCount = property(...)
 
 hasWeights = property(...)
 
 isComplete = property(...)
 
 isEmpty = property(...)
 

Detailed Description

This is the base class for all function sets which deal with
component objects.

__init__()
Initializes a new, empty MFnComponent object
__init__(MObject component)
Initializes a new MFnComponent function set, attached to the specified component.

Method resolution order:
-   MFnComponent
-   MFnBase
-   builtins.object

Base Class

MFnBase

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.

 


Constructor & Destructor Documentation

def OpenMaya.MFnComponent.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMaya.MFnComponent.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MFnComponent.isEqual ( )
isEqual(MObject other) -> bool

Returns True if other refers to the same component as the
one to which the function set is currently attached.
Signature: isEqual(other)
Parameters: other - MObject
Returns: bool
Description: Returns true if other refers to the same component as the one to which the function set is currently attached.
OpenMaya.MFnComponent.weight ( )
weight(index) -> MWeight

Returns the weight associated with the specified element,
where index can range from 0 to elementCount-1.
Signature: weight(index)
Parameters: index - int
Returns: MWeight
Description: Returns the weight associated with the specified element, where index can range from 0 to elementCount-1.

Property Documentation

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