Asking for an engineer, since this isn't something I've ever tried:
He wants to integrate some custom (non-Maya) c++ code into a Maya plugin.
I have experience doing scriptedPlugins in Python, but not c++ ones.
Obviously if you make a c++ plugin it'd be easy to integrate this other
code. So
Interesting Question. I'm pretty sure it could be done. There's lots of
ways available to wrap custom c++ code with a Python Binding, and I know
that in the past I've called into COM interfaces on windows (to drive
Photoshop) from my python scripts, but I'm not sure on the "how" for custom
code.
http://intermediate-and-advanced-software-carpentry.readthedocs.org/en/latest/c++-wrapping.html
On 20 November 2015 at 21:30, Marcus Ottosson
wrote:
> I'm not an engineer, but hopefully you don't mind if I give this one a
> shot. :)
>
> Step 1, write your C++ code.
>
On Sat, 21 Nov 2015 9:30 AM Marcus Ottosson wrote:
I'm not an engineer, but hopefully you don't mind if I give this one a
shot. :)
Step 1, write your C++ code.
Step 2, create bindings for Python
For step 2, you can use any of these.
- sip (from PyQt-land)
- shiboken