View Full Version : Python: MFnMesh Function requies MStringArray

03 March 2008, 09:11 PM
Maya says:
Differences between the C++ Maya API and Maya Python API
No MString and MStringArray classes
We have removed the MString and MStringArray classes from the Maya Python API. Python already has a very robust string implementation which makes ours unnecessary.

I am calling the function that was instanced from MFnMesh:
meshFn.createBlindDataType( id0, longNames, shortNames, dataTypes )

Using the type call the following:
id0 = 'int'
longNames, shortNames, and dataTypes are all 'list'

The error is:
# TypeError: in method 'MFnMesh_createBlindDataType', argument 3 of type 'MStringArray' #

The help docs for the MFnMesh class for thefunction createBlindDataType states:
MStatus MFnMesh:: createBlindDataType ( int blindDataId, MStringArray longNames, MStringArray shortNames, MStringArray formatNames)

Maya does not like the list in replace of MStringArray.. suggestions?

-brian (

CGTalk Moderation
03 March 2008, 09:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.