Mixing C++ and python API in plug-in

Mixing C++ and python API in plug-in

kbratland
Explorer Explorer
581 Views
1 Reply
Message 1 of 2

Mixing C++ and python API in plug-in

kbratland
Explorer
Explorer

If I have a maya plug-in defined via the python API, is it possible to load a C++ dll and register additional things for the plug-in in C++?  Maya's python API lacks certain features that are available in C++, like MPxFileTranslator.  I was hoping that in a C++ dll (loaded by my python code) I might be able to use MFnPlugin::findPlugin to get a hold of my plugin object and then register the file translator in C++, but doing that causes maya to crash.  I'm getting the impression I'd need an entirely separate C++ maya plug-in if I want a MPxFileTranslator; is that true?

 

0 Likes
Accepted solutions (1)
582 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I don't think that's possible, Maya object in Python should be wrapped so you can't get use one to replace another directly.

 

Yours,

Li

0 Likes