[Maya-Python] Opinions on Python import methodology

2012-10-02 Thread Python inside Maya
I would love to hear some thoughts on handling python imports, specifically in larger code depots with deeper hierarchies. The way I see it, the safest way to go is to import company.teamA.whatever.module The big draw back that I see is that the code becomes bloated with company.teamA.whatever.

Re: [Maya-Python] Opinions on Python import methodology

2012-10-03 Thread Python inside Maya
"from ... import ..."? > > > On Oct 2, 2012, at 5:01 PM, Python inside Maya > > > wrote: > > I would love to hear some thoughts on handling python imports, > specifically in larger code depots with deeper hierarchies. > The w

Re: [Maya-Python] Opinions on Python import methodology

2012-10-03 Thread Python inside Maya
[email protected] > >> > >> > >> > >> On Wed, Oct 3, 2012 at 11:44 AM, Jesse Kretschmer > >> > > wrote: > >>> > >>> I would certainly advise against "from bigpackage import *" as the > >>> wildcard c

[Maya-Python] PyMel release 1.0.4?

2012-10-09 Thread Python inside Maya
I see documentation for it on the Autodesk site, but no release on http://code.google.com/p/pymel/downloads/list I assume that the version is bundled in with 2013&2013.5 Is there a difference between grabbing it straight out of the site-packages from the Maya install as opposed to grabbing it fr

[Maya-Python] Re: PyMel release 1.0.4?

2012-10-19 Thread Python inside Maya
Yea, I went with the Autodesk bundled version. We pull out the PyMel folder and put it in network location then insert the paths in Maya.env through our Pipeline installer. SOEG_PYMEL = W:/Tools/SOEglobal/python/SOEmayaTools/pymel-1.0.3 SOEG_PYQT = W:/Tools/SOEglobal/python/SOEmayaTools/PyQt4/201

[Maya-Python] API Screenshot including alpha?

2012-11-27 Thread Python inside Maya
I am using the following code to screen grab a custom viewport (thanks Nathan Horne) #Import api modules import maya.OpenMaya as api import maya.OpenMayaUI as apiUI #Grab the last active 3d viewport view = apiUI.M3dView.active3dView() #read the color buffer from the view, and save the MImage to

[Maya-Python] Re: How to use pywin32 from network location

2012-11-27 Thread Python inside Maya
I would love to hear other experiences on this as well. What I have heard regarding this is that it is not possible. The reason I got was that pywin32 has to modify the actual Python install itself in order for it to work correctly and thus can not be run on it's own outside of a Python install

[Maya-Python] Re: API Screenshot including alpha?

2012-11-28 Thread Python inside Maya
t;configure" the alpha. Has anyone used setColorMask? On Tuesday, November 27, 2012 3:17:52 PM UTC-8, Python inside Maya wrote: > > I am using the following code to screen grab a custom viewport (thanks > Nathan Horne) > #Import api modules > import maya.OpenMaya as api > im

[Maya-Python] Re: API Screenshot including alpha?

2012-12-04 Thread Python inside Maya
lPtr, position+0, color[0]) self.su.setUcharArray(self.pixelPtr, position+1, color[1]) self.su.setUcharArray(self.pixelPtr, position+2, color[2]) self.su.setUcharArray(self.pixelPtr, position+3, color[3]) On Tuesday, November 27, 2012 3:17:52 PM UTC-8, Python inside Maya wrote: > > I am using the