OpenMaya.MFnStringArrayData Class Reference
Function set for node data consisting of an array of string.
Method resolution order:
- MFnStringArrayData
- MFnData
- MFnBase
- __builtin__.object
Base Class
MFnData<h2>Constructors
Signature Parameters Description
MFnStringArrayData() Default constructor. Returns a new MFnStringArrayData function set with no Maya object attached.
MFnStringArrayData(object) object - MObject Returns a new MFnStringArrayData 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.
Deletion, concatenation, repetition and slicing are not supported.
OpenMaya.MFnStringArrayData.__init__
(
)
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMaya.MFnStringArrayData.__delitem__
(
)
x.__delitem__(y) <==> del x[y]
OpenMaya.MFnStringArrayData.__getitem__
(
)
x.__getitem__(y) <==> x[y]
OpenMaya.MFnStringArrayData.__len__
(
)
OpenMaya.MFnStringArrayData.__setitem__
(
)
x.__setitem__(i, y) <==> x[i]=y
OpenMaya.MFnStringArrayData.array
(
)
Returns the encapsulated array as a list of unicode objects.
Signature: array()
Parameters:
Returns: list of strings
Description: Returns the encapsulated array as a list of strings.
OpenMaya.MFnStringArrayData.create
(
)
Creates a new string array data object.
Signature: create()
Parameters:
Returns: MObject
Description: Creates a new empty string array data object, attaches it to the function set and returns an MObject which references it.
Signature: create(seq)
Parameters: seq - sequence of strings
Returns: MObject
Description: Creates a new string array data object, initializes it with the elements from seq , attaches it to the function set and returns an MObject which references it.
OpenMaya.MFnStringArrayData.set
(
)
Sets values in the encapsulated array.
Signature: set(seq)
Parameters: seq - sequence of strings
Returns: Reference to self.
Description: Replaces the elements in the encapsulated array with those from the supplied sequence.
Signature: set(value, index)
Parameters: value - string
index - int
Returns: Reference to self.
Description: Sets the value of the index 'th array element.