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

Public Member Functions

def __init__ ()
 
def create ()
 
def set ()
 
def string ()
 
- 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 string node data.

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

Base Class

MFnData<h2>Constructors

SignatureParametersDescription
MFnStringData()  

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

MFnStringData(object) object - MObject

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

 


Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MFnStringData.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MFnStringData.create ( )
Creates a new string data object.
Signature: create()
Parameters:  
Returns: MObject
Description: Creates a new empty string data object, attaches it to the function set and returns an MObject which references it.
Signature: create(str)
Parameters: str - string
Returns: MObject
Description: Creates a new string data object, initializes it with str, attaches it to the function set and returns an MObject which references it.
OpenMaya.MFnStringData.set ( )
Sets the value of the encapsulated string.
Signature: set(str)
Parameters: str - string
Returns: Reference to self.
Description: Replaces the contents of the encapsulated string with that of str.
OpenMaya.MFnStringData.string ( )
Returns the encapsulated string as a unicode object.
Signature: string()
Parameters:  
Returns: string
Description: Returns a copy of the encapsulated string.