Posts

Showing posts from May, 2012

How to install Win32 extension for Python for Maya 2012

 You might have two different versions of Maya2012 on your machine. Maya 2012 64 bit Maya 2012 32 bit 1. First, we will have to grab correct win32com library for Maya version. Following are the link for different versions . For Maya 2012 64 bit  => win32com for python 2.6 64 bit . For Maya 2012 32 bit  => win32com for python 2.6 32 bit. 2. Installation of these libraries will also require Python standalone installation, which you can get from  python.org website. Python 2.6 64 bit ( compatible to Maya 2012 64 bit ) Python 2.6 32 bit ( compatible to Maya 2012 32 bit ) 3. After you would install python standalone, your installed win32com library would go in following directory : C:\Python26_64bit\Lib\site-packages Add above path in your system paths by executing following commands in Maya. import sys                                                                          sys.path.append("C:/Python26_64bit/Lib/site-package") If at this p

Sending email through Maya2012 (using Python and Outlook express)

How to send email using Outlook express through Maya. We will be using python to send an email through Outlook express and to initiate Outlook express Maya python we will need a module called as : win32com. For Maya 2012 64 bit :   pywin32-217.win-amd64-py2.6.exe For Maya 2012 32 bit :   pywin32-217.win32-py2.6.exe    Its a good idea to install python32bit and python64bit on your machine because you may requires different versions depending upon libraries you are using for your tools and sometimes while loading win32api in Maya2012 64bit so might see .dll errors all others : http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/ ( To install these executable you will also need Python 2.6 64bit or 32bit installed on your machine ) After installing Python and pywin32 run Maya2012. Now when you will import win32com module in Maya, your system should know where this module exists therefore  we will add the path of this module in system path. following is the code t