OpenMaya.MFnDoubleArrayData Class Reference

OpenMaya.MFnDoubleArrayData Class Reference

Class Description

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

Method resolution order:
-   MFnDoubleArrayData
-   MFnData
-   MFnBase
-   __builtin__.object

Base Class

MFnData<h2>Constructors

SignatureParametersDescription
MFnDoubleArrayData()  

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

MFnDoubleArrayData(object) object - MObject

Returns a new MFnDoubleArrayData 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. Element values are treated as Python floats.

Deletion, concatenation, repetition and slicing are not supported.

 


+ Inheritance diagram for OpenMaya.MFnDoubleArrayData:

Public Member Functions

__delitem__ ()
 
__getitem__ ()
 
__init__ ()
 
__len__ ()
 
__setitem__ ()
 
array ()
 
copyTo ()
 
create ()
 
set ()
 
- Public Member Functions inherited from OpenMaya.MFnData
__init__ ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
__init__ ()
 
hasObj ()
 
object ()
 
setObject ()
 
type ()
 

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnData
int kAny = 24
 
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 = 25
 
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
 

Constructor & Destructor Documentation

OpenMaya.MFnDoubleArrayData.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MFnDoubleArrayData.__delitem__ ( )
x.__delitem__(y) <==> del x[y]
OpenMaya.MFnDoubleArrayData.__getitem__ ( )
x.__getitem__(y) <==> x[y]
OpenMaya.MFnDoubleArrayData.__len__ ( )
x.__len__() <==> len(x)
OpenMaya.MFnDoubleArrayData.__setitem__ ( )
x.__setitem__(i, y) <==> x[i]=y
OpenMaya.MFnDoubleArrayData.array ( )
Returns the encapsulated array as an MDoubleArray.
Signature: array()
Parameters:  
Returns: MDoubleArray
Description: Returns the encapsulated array as an MDoubleArray. 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.MFnDoubleArrayData.copyTo ( )
Replaces the elements of an array with those in the encapsulated array.
Signature: copyTo(array)
Parameters: array - MDoubleArray
Returns: Reference to self.
Description: Replaces the elements of array with those in the encapsulated array.
OpenMaya.MFnDoubleArrayData.create ( )
Creates a new double array data object.
Signature: create()
Parameters:  
Returns: MObject
Description: Creates a new, empty double array data object, attaches it to the function set and returns an MObject which references it.
Signature: create(array)
Parameters: array - MDoubleArray or sequence of floats
Returns: MObject
Description: Creates a new, double array data object, initializes it with the elements from array, attaches it to the function set and returns an MObject which references it.
OpenMaya.MFnDoubleArrayData.set ( )
Sets values in the encapsulated array.
Signature: set(array)
Parameters: array - MDoubleArray or sequence of floats
Returns: Reference to self.
Description: Replaces the elements in the encapsulated array with those from the supplied array.
Signature: set(value, index)
Parameters: value - float
index - int
Returns: Reference to self.
Description: Sets the value of the index'th element of the array.

The documentation for this class was generated from the following files:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMaya.py
  • D:/Maya-MD-Merge/input/python/extras.dox