I just found out this morning that I can add google groups to a
Wave... anyopne in this group using wave?
I have a few invites if anyone would like to get on the Wave
bandwagon.
Cheers
--
http://groups.google.com/group/python_inside_maya
Hi guys, I have setup this logging setup in the __init__.py file of
my mfxMaya package
# setup logging
import logging
import maya.OpenMaya as OpenMaya
MAYA_LOGGING_SETUP = False
class MayaLogHandler(logging.Handler):
def emit(self, record):
if record.levelno logging.ERROR:
Hi, I have been experimenting with the python logging module... for
some reason the debug and info level of the logging are not printed in
Maya..
Here is a simple example:
import logging
def go():
logging.basicConfig(level=logging.DEBUG)
logger1 = logging.getLogger('package1.module1')
Hi, I have this setup for Maya 2009
My user Pref are localed on the network m:\profiles\sylvain.berger\maya
\...
in these user pref I have a maya.env file that add a network
MAYA_SCRIPT_PATH=m:\library\maya\scripts\
when I put the userSetup.py in the MAYA_SCRIPT_PATH location it
doesn't get
So I created this menu in the main menubar in python...the commands
attached to these python menuItem are python commands.
When select the item in the menu, the python command execute
correctly... when I do a shift+CTRL click an item to make a shelf
button, it create a mel shelf button!!!
Hi guys, i would to know if there is already function in python to
perform list booleans.
For example, given those list
listA = [1,2,3]
listB = [2,3,4,5]
performing these operation would give the result
listB-listA would give [4,5]
listA+listB would give [1,2,3,4,5]
etc..
thanks
Hi guys, I found this trick for Maya. When you create a window class,
I can use the partial function to build my commands sent to my
buttons.
The problem is I can only manage to make this work with one arguments,
when I send 2 or more arguments i get errors.
Here is the code:
from functools
Hi guys, I am currently trying to install pyqt for maya 2009... I am
now trying to get the 32 bit version working... 64 bit is always a
pain in python in my experience.
I would like to know if anyone where sucessful at getting pyqt GPL
4.4.4 to work in maya.
The doc in maya 2009 for pyqt refers
Hi, I am trying to make a drag and drop function to be able to drag an
icon or image from my window into the main maya window... So far I was
able to drag and drop an icon from one part of my window to another
part of the same window... but I can't figure out how to drag and drop
from the window
Hi, anyone have examples of how to use unittest in maya, I read on the
subject and it seems like a really good way to test code... the
problem is I can't figure out how to make it work properly in Maya...
Thanks
--~--~-~--~~~---~--~~
Hi, I have this folder structure where I put all my python scripts.
myPythonScript
modeling
pyScript1.py
pyScript2.py
animation
pyScript1.py
shading
pyScript1.py
pyScript2.py
pyScript3.py
etc..
In these script when I need a function from another script I import it
like so:
from
Hi, I want to get the transform node from a mesh, but the getTransform
() method is not included in the mesh class.
So I am using the degNode.getParent() method instead which work fine.
Would it make sense to have the getTransform() method from the shape
class included in the mesh. Same for
Hi, I am wondering why the nodeType() method of a vertex return mesh
instead of meshVertex type?
# run this code to repro
sphere = pm.polySphere()[0]
pm.select('%s.vtx[0:10]' %sphere, r=True)
sel = pm.ls(sl=True, fl=True)
for i in sel:
print 'nodeType:', i.nodeType()
print
On the same line, I found another problem with UV component.
Basically I figured that there is no pymel polygon UV nodeType.
This example crash at the polyUVs command: Create a poly shape,
select a few UVs and run the getPolygonUVs() function... it will fail.
the other 3 polygon components work
Hi, I am using pymel to build this window. in my Apply button I am
using lambda in the command flag:
applyButton = pm.button( height=buttonHeight, label='Apply',
command=lambda *args: _windowApply(window, False) )
In the aply function, I grab values from the window and use these
values to call
Hi, I have a few question on the getAssignedUVs() function.
I would like to understand what is the return of that function... I
don't understand the return.
import pymel as pm
plane = pm.polyPlane(sw=2, sh=2)[0]
print 'plane:', plane, '|type', type(plane)
shape = plane.getShape()
print
I'm not sure if I should post it here ... if not please let me know
where I should post for pymel bugs please.
here is the bug. selecting a uv point and running the following
command crashes:
import pymel as pm
sel = pm.selected()
thanks
--~--~-~--~~~---~--~~
So I finally took the time to look at pymel ... WOW! I mean WOW! I had
no Idea it was this powerful! I knew it would be nice, but not like
that. I am extremely impressed and pleased. Great work guys...really
great!
Now for my question.
I am looking at a way of getting all the poly shells from a
Hi, I am trying to suppress maya warning message, but the try:/except:
clause don't supress it.
Anyone know how to do this?
Here is a peice of code that repro the problem
import maya.cmds as cmds
circle_X = cmds.circle(c=(1.1,0,0), nr=(0,1,0), s=8)[0]
circle_Y = cmds.circle(c=(-1.1,0,0),
19 matches
Mail list logo