|
Python API 2.0 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(...) | |
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
| 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. |
| def OpenMaya.MFnComponent.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
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. |
|
static |
Type of the component. (MFn Type constant)
| Name: | componentType |
| Type: | MFn Type constant |
| Access: | R |
| Description: | Type of the component. |
|
static |
Number of elements in the component.
| Name: | elementCount |
| Type: | int |
| Access: | R |
| Description: | Number of elements in the component. |
|
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. |
|
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 |
|
static |
True if the component contains no elements.
| Name: | isEmpty |
| Type: | bool |
| Access: | R |
| Description: | True if the component contains no elements. |