Add data to a Mesh
Hi!
I’m doing a plugin for Maya where I convert a Mesh into a type of triangular mesh and export the resulting Mesh with a specific format. I have this two functionalities in a single plugin.
I have to separate these two functionalities, I’ve got to create one plugin for conversion and one other for exportation. The problem is when I make the conversion of a Mesh I need to keep some data that don’t belong to the Mesh itself to do the exportation.
My question is: how can I add data to a Mesh in the plugin of conversion? And later on, how can I access this data of the converted Mesh in another plugin?
The only functions that I have found was this two:
MStatus MFnMesh:: setDoubleBlindData ( MIntArray & compIDs, MFn::Type compType, int blindDataId, MString attrName, MDoubleArray & data)
And
MStatus MFnMesh:: getDoubleBlindData ( MFn::Type compType, int blindDataId, MString attrName, MIntArray & compIDs, MDoubleArray & data) const
I can use the setDoubleBlindData in the Mesh Converted object and the getDoubleBlindData in the exporter plugin to access the data that I need… But the problem is that in this way I just can associate data to the Mesh that are in a MDoubleArray vector, so I can’t associate to the Mesh another type of data.
Any suggestion? Can you help me?
Thanks,
Malu
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement