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

Public Member Functions

def __eq__ ()
 
def __ge__ ()
 
def __gt__ ()
 
def __init__ ()
 
def __le__ ()
 
def __lt__ ()
 
def __ne__ ()
 
def copy ()
 
def getLower ()
 
def getUpper ()
 
def getValue ()
 
def hasLowerBound ()
 
def hasRange ()
 
def hasUpperBound ()
 
def hasValidRange ()
 
def isBounded ()
 
def setLower ()
 
def setType ()
 
def setUpper ()
 
def setValue ()
 
def type ()
 

Static Public Member Functions

def __new__ ()
 

Static Public Attributes

int kFloat = 1
 
int kInteger = 0
 

Detailed Description

The index information for an attribute specification.

Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MAttributeIndex.__eq__ ( )
Return self==value.
def OpenMaya.MAttributeIndex.__ge__ ( )
Return self>=value.
def OpenMaya.MAttributeIndex.__gt__ ( )
Return self>value.
def OpenMaya.MAttributeIndex.__le__ ( )
Return self<=value.
def OpenMaya.MAttributeIndex.__lt__ ( )
Return self<value.
def OpenMaya.MAttributeIndex.__ne__ ( )
Return self!=value.
def OpenMaya.MAttributeIndex.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMaya.MAttributeIndex.copy ( )
copy(source) -> self

Copy data from source index.

* source (MAttributeIndex) - The source index to copy from
def OpenMaya.MAttributeIndex.getLower ( )
getLower() -> int/float

Returns the lower bound of the index.
def OpenMaya.MAttributeIndex.getUpper ( )
getUpper() -> int/float

Returns the upper bound of the index.
def OpenMaya.MAttributeIndex.getValue ( )
getValue() -> int/float

Returns the current value of the index.
Raises an exception if the index is a range.
def OpenMaya.MAttributeIndex.hasLowerBound ( )
hasLowerBound() -> bool

Returns True if a lower bound is specified.
def OpenMaya.MAttributeIndex.hasRange ( )
hasRange() -> bool

Returns True if a range was specified.
def OpenMaya.MAttributeIndex.hasUpperBound ( )
hasUpperBound() -> bool

Returns True if an upper bound is specified.
def OpenMaya.MAttributeIndex.hasValidRange ( )
hasValidRange() -> bool

Returns True if upper bound is greater than lower bound.
def OpenMaya.MAttributeIndex.isBounded ( )
isBounded() -> bool

Returns True if the index is bounded.
def OpenMaya.MAttributeIndex.setLower ( )
setLower(value) -> self

Sets the lower bound of the index.
def OpenMaya.MAttributeIndex.setType ( )
setType(type) -> self

Sets the type of attribute index.
See type() for a list of valid index types.

* type (int) - the index type to set
def OpenMaya.MAttributeIndex.setUpper ( )
setUpper(value) -> self

Sets the upper bound of the index.
def OpenMaya.MAttributeIndex.setValue ( )
setValue(value) -> self

Sets the value of the index.

Remark: calling this method with an integer value will change its type to kInteger, and subsequently calling with a float value will change it to kFloat.
def OpenMaya.MAttributeIndex.type ( )
type() -> int

Returns the type of attribute index.

Valid index types:
  kInteger      Integer index (e.g. mesh.cp[5])
  kFloat                Floating-poing index (e.g. curve.u[1.3])