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
OpenMaya.MFnVectorArrayData.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MFnVectorArrayData.__delitem__
(
)
x.__delitem__(y) <==> del x[y]
OpenMaya.MFnVectorArrayData.__getitem__
(
)
x.__getitem__(y) <==> x[y]
OpenMaya.MFnVectorArrayData.__len__
(
)
x.__len__() <==> len(x)
OpenMaya.MFnVectorArrayData.__setitem__
(
)
x.__setitem__(i, y) <==> x[i]=y
OpenMaya.MFnVectorArrayData.array
(
)
Returns the encapsulated array as an MVectorArray.
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.
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.