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

Public Member Functions

def __init__ ()
 
def addElement ()
 
def addElements ()
 
def create ()
 
def element ()
 
def getCompleteData ()
 
def getElements ()
 
def setCompleteData ()
 
- Public Member Functions inherited from OpenMaya.MFnComponent
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.MFnComponent
def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnBase
def __new__ ()
 

Properties

 elementMax = property(...)
 
- Properties inherited from OpenMaya.MFnComponent
 componentType = property(...)
 
 elementCount = property(...)
 
 hasWeights = property(...)
 
 isComplete = property(...)
 
 isEmpty = property(...)
 

Detailed Description

This function set allows you to create, edit, and query single indexed components.
Single indexed components store 1 dimensional index values.

__init__()
Initializes a new, empty MFnSingleIndexedComponent object

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

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

Base Class

MFnComponent

 


Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MFnSingleIndexedComponent.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMaya.MFnSingleIndexedComponent.addElement ( )
addElement(int element) -> self

Adds the specified element to the component.
def OpenMaya.MFnSingleIndexedComponent.addElements ( )
addElements([int]) -> self
addElements(MIntArray) -> self

Adds the specified elements to the component.
def OpenMaya.MFnSingleIndexedComponent.create ( )
create(MFn Type constant) -> MObject

Creates a new, empty component, attaches it to the function set and
returns an MObject which references it.
def OpenMaya.MFnSingleIndexedComponent.element ( )
element(index) -> int

Returns the index'th element of the component.
def OpenMaya.MFnSingleIndexedComponent.getCompleteData ( )
getCompleteData() -> int

Returns the number of elements in the complete component, or 0 if the component is not complete.
def OpenMaya.MFnSingleIndexedComponent.getElements ( )
getElements() -> MIntArray

Returns all of the component's elements.
def OpenMaya.MFnSingleIndexedComponent.setCompleteData ( )
setCompleteData(numElements) -> self

Marks the component as complete (i.e. contains all possible elements).
numElements indicates the number of elements in the complete component.

Property Documentation

OpenMaya.MFnSingleIndexedComponent.elementMax = property(...)
static
 Biggest element plus 1 in the component.