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.
"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
[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
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
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
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
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
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
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