In C++ casting to parent or child classes is quite easy and working with MFnPluginData and MPxData is straightforward:
MFnPluginData fnDataCreator; fnDataCreator.create( apiMeshData::id, &stat ); apiMeshData * newData = (apiMeshData*)fnDataCreator.data( &stat ); //casting This is an example from Maya devkit. Quite straightforward - fnDataCreator.data method returns MPxData *pointer *and then it is casted to apiMeshData class. From here we can access data from this class. OK cool, but how I supposed to deal with it in Python? Maya Python API 2.0 returns me MPxData object (link <http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__py_ref_class_open_maya_1_1_m_fn_plugin_data_html>) and I don't know how to deal with it. Is there some sort of casting I supposed to do? Any ideas? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2f08ce02-9382-4e13-98c0-7858438e9f19%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
