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

Public Member Functions

def __init__ ()
 
def copy ()
 
def name ()
 
def readASCII ()
 
def readBinary ()
 
def typeId ()
 
def writeASCII ()
 
def writeBinary ()
 

Static Public Member Functions

def __new__ ()
 

Static Public Attributes

int kData = 0
 
int kGeometryData = 1
 
int kLast = 2
 

Detailed Description

Base Class for User-defined Dependency Graph Data Types.

Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MPxData.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMaya.MPxData.copy ( )
copy(src) -> self

This method initializes an instance of an MPxData derived class from another existing instance.  This method can be thought of as the second half of a copy constructor for the class.  The default constructor has already been called for the instance, and this method is used to set the private data by copying the values from an existing instance.
This method must be implemented by the derived class.

* src (MPxData) - The object from which to copy the private data
def OpenMaya.MPxData.name ( )
name() -> string

Returns the name of the custom data type.
This method must be implemented by the derived class.
def OpenMaya.MPxData.readASCII ( )
readASCII(argList, endOfTheLastParsedElement) -> int

Creates Data in Data Block as specified by input from ASCII file record.
Returns the new last argument parsed by this method.

* argList (MArgList) - List of arguments read from ASCII record* endOfTheLastParsedElement (int) - points to last argument already parsed.
def OpenMaya.MPxData.readBinary ( )
readBinary(in, length) -> int

Creates Data in Data Block as specified by binary data from the given stream.
Returns the numbers of data bytes processed or -1 in case of error.

* in (bytearray) - Input stream
* length (int) - Length in bytes of binary data to be read.
def OpenMaya.MPxData.typeId ( )
typeId() -> MTypeId

Determines the type id of the Data object.
This method must be implemented by the derived class.
def OpenMaya.MPxData.writeASCII ( )
writeASCII() -> string

Encodes Data in accordance with the ASCII file format and returns as string.
def OpenMaya.MPxData.writeBinary ( )
writeBinary() -> bytearray

Encodes Data in accordance with the binary file format and returns as bytearray.