You don't always immediately get better performance by choosing C++ over python. It depends specifically on what your application is doing. A UI that is presenting a bunch of options and buttons to perform API actions in Maya is most likely going to have zero different between it being written in Python vs C++. But if that UI needs to do a bunch of calculations, or loops, etc, profiling might tell you that you get better performance in C++ (if with compiled extension libraries in Python still can't get you where you need to be).
I am sure writing something in C++ can have its own set of complications, such as portability. PySide happens to be shipped with Maya now, so that means a pure python UI can be distributed for multiple platforms, where as a C++ UI would have to be cross compiled.
Like others have said...choose the best tool for the job. I have some pretty heavy UIs in PySide and people can't tell the difference because they perform quite well.
Most of the UI's I write are interacting with other legacy ui's (whether authored via mel, Python cmds, or PySide) , or parts of the DAG. If the only access I had to them was through the c++ api I'd probably shoot myself :P Having access to PySide (for me) makes the actual interaction part with Maya trivial, compared to jumping through all the hoops needed to do simple stuff in the api.
--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5c207f32-635b-4bbd-bf83-1cd9453ee7d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Most of the UI's I write are interacting with other legacy ui's (whether authored via mel, Python cmds, or PySide) , or parts of the DAG. If the only access I had to them was through the c++ api I'd probably shoot myself :P Having access to PySide (for me) makes the actual interaction part with Maya trivial, compared to jumping through all the hoops needed to do simple stuff in the api.
--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 python_inside_m...@googlegroups.com.
If by “pack everything up” you mean “make a binary” then you can do that with Python too.
https://github.com/pyinstaller/pyinstaller/wiki
http://www.py2exe.org/
http://cx-freeze.sourceforge.net/
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAMCvD%2BGNFssHXu4ddkAK4aZ4Wi%2BpPJdXU%2BLkU0_Ewz%3DENscHGg%40mail.gmail.com.
I've had great success with py2app and Pyinstaller. Personally it's not a matter of a short term or small project. It is whether C++ provides a benefit
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODR_yPQRf%3DBNh6idGO0WwNcf4C%2B5iza_FtzkO8sVzgPGw%40mail.gmail.com.
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c1d015d3-700c-4abd-9086-a195fab0960f%40googlegroups.com.