If you are using a standard install of PyQt within Maya, it has the
potential to produce undefined results. It expects to be compiled against
the same Qt version as Maya, which is also a modified version by Autodesk.
On 17/07/2014 4:16 PM, "Siew Yi Liang" wrote:
> I actually just copy the direct
I actually just copy the directories from PyQt4 from /lib/site-packages
to Maya's own Python directory at:
C:\Program Files\Autodesk\Maya2013\Python\Lib\site-packages
It seems to be the most reliable result for me so far (using pyqt.pth
files sometimes works/doesn't work based off the user PYT
Is there any particular reason why you are not using PySide instead. It is
already shipping with Maya, no need to compile anything.
Ozgur
eoyilmaz.blogspot.com
On Jul 17, 2014 5:31 AM, "Fredrik Averpil"
wrote:
> You'll have to compile PyQt:
>
> http://download.autodesk.com/us/support/files/maya_
You'll have to compile PyQt:http://download.autodesk.com/us/support/files/maya_documentation/pyqtmaya2014.pdfSent from my iPhoneOn tors, jul 17, 2014 at 3:52 fm, Gyurma wrote:Hi,I'm not very familiar with how to set this up, I read a few things downloaded pyqt, installed but obviously
Hi,
I'm not very familiar with how to set this up, I read a few things
downloaded pyqt, installed but obviously not done it right because it does
not work under maya.
when I do a simple
from PyQt4 import QtCore, QtGui
it just says no such module. Probably missing some env var? Not sure as I
nev
Hey,
I'm still investigating on this but can't find anything working...
No one have any idea?
Thanks in advance :)
.m
Le vendredi 9 mai 2014 17:36:16 UTC+2, mAtt RINGOT a écrit :
>
> Hey guys,
>
> I know it's a really old post but does anyone found the way to fix that
> rightClick issue ?
>
>
You could either structure it as a class, as suggested, or you could use my
most favorite member of the stdlib, and wrap your callback:
import maya.cmds as mcfrom functools import partial
def launch_UI():
if mc.window("myWindow", ex=True):
mc.deleteUI("myWindow", window=True)
mc.w
Hi Gabriele:
You might want to look at some sample code for creating windows. (e.g.
http://stackoverflow.com/questions/3492106/creating-a-maya-ui)
However, more to the point, the reason you cannot access toggle_test is
because it is out of scope, and only launchUI() knows about it. If you
wa
Following everybody's hints, I got to this point:
# Load maya commands module
import maya.cmds as mc
# Build the UI
def launch_UI():
# This prevents multiple windows to pop up
if mc.window("myWindow", ex=True):
mc.deleteUI("myWindow", window=True)
# Window set-up
Hi, this is the code I use for my Maya.env accross multiple machines, to
keep stuff in sync using Google Drive. It is not exactly a network
repository but it gets the job done :P
// Note: shelves appear to not work properly (load but empty) if
MAYA_SHELF_PATH
//is not defined before MAYA_SCRIPT
Haha, it can be a cluster fuck though :).
As Eric pointed out, the userSetup.py is a good entry point as it gets run
every time maya starts. I don't bother messing with the Maya.env file at
all. If you can at least get a single userSetup.py into to user's
PYTHONPATH before startup, you should be
Pardon the language folks. I thought I replied directly to Mike. :\
On Wednesday, July 16, 2014 9:44:14 AM, Eric Thivierge wrote:
Hey Mike,
Good luck with this. It's an utter cluster fuck. :\
There are two things I think you'll need to manage:
Maya.env
=
Location: C:\Users
Hey Mike,
Good luck with this. It's an utter cluster fuck. :\
There are two things I think you'll need to manage:
Maya.env
=
Location: C:\Users\ethivierge\Documents\maya\2014-x64\Maya.env
File contents:
MAYA_MODULE_PATH=U:\PROD\Creation
Platform\Splice\maya\1.11\FabricSpli
Hey Guys,
I am sure this is an* RTFM* question ... but can anyone point me to
instructions on setting up a network repository for scripts and shelves I
want to auto-load on all our workstations ?
I will continue to read the docs, but thought someone here might be able to
give me direct informa
PySide also returns a list in the versions I am testing. In your version is
it actually returning a QList? I wasn't aware that those were actually
exposed to python bindings. Everything I have tried returns a python list.
I will have to check my version of PySide in Maya 2014 when I get back to
wor
I actually use PySide
On Wed, Jul 16, 2014 at 3:09 PM, Justin Israel
wrote:
> Are you using an old version of PyQt maybe? Because I am testing PyQt
> 4.8.6 in Maya 2013, using the default sip API v1, and
> QTreeWidget.selectedItems() returns a plain list of QTreeWidgetItems:
>
> from PyQt4 impo
Are you using an old version of PyQt maybe? Because I am testing PyQt 4.8.6
in Maya 2013, using the default sip API v1, and QTreeWidget.selectedItems()
returns a plain list of QTreeWidgetItems:
from PyQt4 import QtCore, QtGui
tree = QtGui.QTreeWidget()
tree.setSelectionMode(t.ExtendedSelection)
f
17 matches
Mail list logo