PDA

View Full Version : Python for .NET


gandhics
07-22-2011, 05:47 AM
I just found this.
http://pythonnet.sourceforge.net/

The website said "This approach allows you to use use CLR services and continue to use existing Python code and C-based extensions while maintaining native execution speeds for Python code. "

Can Anybody give some explanation about this?
Can we utilize this with MaxSharp, so we can use python+Qt in max?

SoLiTuDe
07-22-2011, 05:56 AM
I don't think so, but I don't know for sure. It sounds similar to IronPython, and it's more for using python code to access and run .net libraries, though you can also run python code through .net I don't think qt is an easy addition here. If you're looking for python + pyqt, you should check out the latest version of the blur tools here: http://code.google.com/p/blur-dev/
It's a python/pyqt implementation for max. It can be a little complex and it's a bit picky about what's installed where, so I suggest installing it with a clean version of max and clean python all using the downloads they list on that site. Then, after you are familiar with how it works port it over to your main setup.

--Ian

ehulser
07-25-2011, 07:21 AM
Well, you might be able to...

The Blur solution simply exposes CPython directly to Maxscript and vice versa.

All the PyQt code is pure Python/PyQt. The main reason it wouldn't work with IronPython is because IronPython doesn't work with CPython (which is what PyQt needs).

But this project says that it doesn't have that problem. It'd be worth a shot. The only thing you'll need to make sure to have is a PyQt wrapped version of the QtWinMigrate DLL.

CGTalk Moderation
07-25-2011, 07:21 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.