Adverti horiz upsell

ezPicker 1.0.0 for Maya (maya script)

simple "picker" tool for Maya

License
Button download
680 Downloads

Compatibility

  • 2012

History

Created:08/30/2011
Last Modified:09/11/2011
File Size: 13.9 KB

Bugs

I can't get it working! - Please help

Statuspending
Prioritylow
Date12/11/2011
Submitted bytristratos tristratos
Dear Eric,

I have downloaded your script from creativecrash lately and tried to install it and test it out.
Unfortunately, even if I followed the exact steps you describe in readme.txt file, I still get the following error, each time I try to create using the right mouse click, either a box selector, or an ellipse selector.

# Traceback (most recent call last):

# File "<maya console>", line 324, in itemChange

# AttributeError: type object 'QGraphicsItem' has no attribute 'ItemScaleHasChanged'

# Traceback (most recent call last):

# File "<maya console>", line 674, in contextMenuEvent

# File "<maya console>", line 748, in makeSelectorWidget

# File "<maya console>", line 188, in __init__

# AttributeError: type object 'QGraphicsItem' has no attribute 'ItemSendsGeometryChanges'


I have to add that I am using Maya 2012 SAP and that I have installed as mentioned the PyQT 64 bit version in C:\Program Files\Autodesk\Maya2012\Python as described.

In fact after executing in maya "import PyQt4" I get no error assuming that everything installed as mentioned.

 

Please help!

What am I doing wrong?

Is there a known bug or something that needs to be done before using your script? Please specify

Comments on this bug:

  • eevans

    eevans said almost 13 years ago:

    I haven't tested the tool with Maya 2012 SAP. The tool was developed using Maya 2012 "vanilla". The error makes me think that something may have gone awry with the PyQt installation. Unfortunately, a generic version of PyQt4 won't do. Maya will only work properly with a version of PyQt compiled with the same version of Python that Maya uses. Here's a brief snippet of code to test your PyQt installation: From PyQt4 import QtGui, QtCore btn = QtGui.QPushButton(QtGui.__file__) btn.show() If this code produces a button without errors, your PyQt install is probably sound.
  • tristratos

    tristratos said almost 13 years ago:

    Dear Eric, when executing the script you mention all I get is the following: From PyQt4 import QtGui, QtCore btn = QtGui.QPushButton(QtGui.__file__) btn.show() # Error: SyntaxError: invalid syntax # Please help! What version of PyQT should I Install!?!? All I did is follow your instructions in the text file included and installed https://ericnevans.com/downloads/PyQt-Py2.6-x64-gpl-4.8.3-1.exe Should I download and install another version instead ?? Please specify Best Regards!
  • tristratos

    tristratos said almost 13 years ago:

    Dear Eric, I reinstalled the pyQT for maya 2012 64 bit from here https://dl.dropbox.com/u/1633130/PyQt%20x64/Maya%202012/PyQt-Py2.6-x64-gpl-4.8.3-1.exe as mentioned in this blogpost https://nathanhorne.com/?p=451. I have even tested the code that this user indicates to test wether pyQt is properly working import sip sip.setapi('QString', 2) sip.setapi('QVariant', 2) from PyQt4 import QtGui, QtCore btn = QtGui.QPushButton(QtGui.__file__) btn.show() and it did really opened a window with a button showcasing the QtGui.pyd path to C:\Users\Tristratos\Documents\maya\2012-x64\prefs\sripts\PyQt\QtGui.pyd so I can verify that this is really properly installed. So after executing your script now all I get is an empty window and when I execute the following 3 commands from right menu all I get is the following errors Create Box Selector -------------------- # Traceback (most recent call last): # File "", line 324, in itemChange # AttributeError: type object 'QGraphicsItem' has no attribute 'ItemScaleHasChanged' # Traceback (most recent call last): # File "", line 674, in contextMenuEvent # File "", line 748, in makeSelectorWidget # File "", line 188, in __init__ # AttributeError: type object 'QGraphicsItem' has no attribute 'ItemSendsGeometryChanges' Create Ellipse Selector -------------------- # Traceback (most recent call last): # File "", line 324, in itemChange # AttributeError: type object 'QGraphicsItem' has no attribute 'ItemScaleHasChanged' # Traceback (most recent call last): # File "", line 676, in contextMenuEvent # File "", line 748, in makeSelectorWidget # File "", line 188, in __init__ # AttributeError: type object 'QGraphicsItem' has no attribute 'ItemSendsGeometryChanges' Create Set BG Image -------------------- # Traceback (most recent call last): # File "", line 678, in contextMenuEvent # File "", line 608, in setBGImage # TypeError: argument 5 of QFileDialog.getOpenFileName() has an invalid type Is there something that I am doing wrong or this absolutely invaluable script has a serious bug that prevents it from working properly ? PLEASE HELP
  • tristratos

    tristratos said almost 13 years ago:

    Dear Eric Any idea how to get your script working ? Best Regards Tri

Post a comment: