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

Public Member Functions

def __delitem__ ()
 
def __getitem__ ()
 
def __init__ ()
 
def __len__ ()
 
def __setitem__ ()
 
def array ()
 
def copyTo ()
 
def create ()
 
def set ()
 
- Public Member Functions inherited from OpenMaya.MFnData
def __init__ ()
 
- 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.MFnData
def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnBase
def __new__ ()
 

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnData
int kAny = 24
 
int kFalloffFunction = 25
 
int kFloatArray = 8
 
int kMatrixArray = 12
 
int kComponentList = 13
 
int kDoubleArray = 7
 
int kDynArrayAttrs = 19
 
int kDynSweptGeometry = 20
 
int kIntArray = 9
 
int kInvalid = 0
 
int kLast = 26
 
int kLattice = 15
 
int kMatrix = 5
 
int kMesh = 14
 
int kNId = 23
 
int kNObject = 22
 
int kNumeric = 1
 
int kNurbsCurve = 16
 
int kNurbsSurface = 17
 
int kPlugin = 2
 
int kPluginGeometry = 3
 
int kPointArray = 10
 
int kSphere = 18
 
int kString = 4
 
int kStringArray = 6
 
int kSubdSurface = 21
 
int kVectorArray = 11
 

Detailed Description

Function set for node data consisting of an array of MVectors.

Method resolution order:
-   MFnVectorArrayData
-   MFnData
-   MFnBase
-   builtins.object

Base Class

MFnData<h2>Constructors

SignatureParametersDescription
MFnVectorArrayData()  

Default constructor. Returns a new MFnVectorArrayData function set with no Maya object attached.

MFnVectorArrayData(object) object - MObject

Returns a new MFnVectorArrayData function set, with the specified Maya object attached.

Sequence Support

len() returns the number of elements in the encapsulated array.

Indexing and element assignment are supported. For performance reasons, the MVectors returned by indexing are live references to the corresponding MVector elements in the encapsulated array, so changes made to one affect the other. These returned elements are only valid for as long as the function set retains the same data object. If the function set is destroyed or attached to a different object then the returned MVectors should be discarded. Failure to do so could result in Maya becoming unstable.

Deletion, concatenation, repetition and slicing are not supported.

 


Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MFnVectorArrayData.__delitem__ ( )
Delete self[key].
def OpenMaya.MFnVectorArrayData.__getitem__ ( )
Return self[key].
def OpenMaya.MFnVectorArrayData.__len__ ( )
Return len(self).
def OpenMaya.MFnVectorArrayData.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMaya.MFnVectorArrayData.__setitem__ ( )
Set self[key] to value.
OpenMaya.MFnVectorArrayData.array ( )
Returns the encapsulated array as an MVectorArray.
Signature: array()
Parameters:  
Returns: MVectorArray
Description: Returns the encapsulated array as an MVectorArray. For performance reasons the returned array is a live reference to the encapsulated array so changes made to one directly affect the other. The returned array is only valid for as long as the function set retains the same data object. If the function set is destroyed or attached to a different object then the returned array should be discarded. Failure to do so could result in Maya becoming unstable.
OpenMaya.MFnVectorArrayData.copyTo ( )
Replaces the elements of an array with those in the encapsulated array.
Signature: copyTo(array)
Parameters: array - MVectorArray
Returns: Reference to self.
Description: Replaces the elements of array with those in the encapsulated array.
OpenMaya.MFnVectorArrayData.create ( )
Creates a new MVector array data object.
Signature: create()
Parameters:  
Returns: MObject
Description: Creates a new empty MVector array data object, attaches it to the function set and returns an MObject which references it.
Signature: create(array)
Parameters: array - MVectorArray or sequence of MVectors
Returns: MObject
Description: Creates a new MVector array data object, initializes it with the elements from array, attaches it to the function set and returns an MObject which references it.
OpenMaya.MFnVectorArrayData.set ( )
Sets values in the encapsulated array.
Signature: set(array)
Parameters: array - MVectorArray or sequence of MVectors
Returns: Reference to self.
Description: Replaces the elements in the encapsulated array with those from the supplied array.
Signature: set(value, index)
Parameters: value - MVector
index - int
Returns: Reference to self.
Description: Sets the value of the index'th array element.