Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using .NET in Maya

I'd like to write a plugin for Maya/Windows that uses the .NET library so that I can capture Windows system events from within Maya. I've looked into Python for .NET, but I have no idea what I'm doing. I've tried building from source using Visual C# 2010 Express and placing the clr.pyd and Python.Runtime.dll file in my Maya bin folder as many have suggested, but when I try typing 'import clr' in the script editor, it gives me

line 1: DLL load failed: %1 is not a valid Win32 application.

I've set the C# solution platform to x64, the python.exe that gets built is running in Python 2.6 in x64, and Maya is running Python 2.6 in x64. Can anyone clue me in on what I'm doing wrong or if there's an alternative to Python for .NET?

like image 584
Cindy Xu Avatar asked Aug 23 '26 06:08

Cindy Xu


1 Answers

Check out the Extension 2 for Maya 2013 it has a .NET API.

like image 79
cdiggins Avatar answered Aug 25 '26 21:08

cdiggins