I’m a newbie figuring out the Maya API, and I’m running into a problem when compiling certain example plugins provided in the Maya Devkit.
If any example plugin includes MPxTransform.h, I run into the following error:
Error C4996 'Autodesk::Maya::OpenMaya20230000::MPxTransform::dirtyShear': MPxTransform should not manage built-in attribute Shear myProject C:\Program Files\Autodesk\Maya2023\include\maya\MPxTransform.h 205
Other plugins compile nicely, though I haven’t tried many. My own test plugin that previously compiled and worked correctly also returns this error just by appending
#include <maya/MPxTransform.h> to the file.
I think it’s an issue with my build env but I’m not so sure… I don’t understand why the Maya API would return a deprecation warning on itself. I’m using Visual Studio and the 2023 versions of the devkit, Maya, and the Maya API. (I think)
Anyways, any help would be appreciated on this <3