Re: [Maya-Python] QPushButton hover

2018-08-23 Thread osmeldu
Hi. This is how I fix it, thanks to you guys. I dont know why I was creating a function for the button: class CustomButtom(QtGui.QPushButton): def __init__(self, parentWindow, buttonName, windowsList, icon): super(CustomButtom, self).__init__(parentWindow) #self.icon

Re: [Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread Justin Israel
On Fri, Aug 24, 2018 at 1:24 PM kiteh wrote: > Got it, thanks! Had thought that there may not be a need to perform > another `setText() > I have got another question.. sorry for the mass spam. > > I tried following what you have mentioned and do the same for my other > widgets - checkbox and

Re: [Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread kiteh
Got it, thanks! Had thought that there may not be a need to perform another `setText() I have got another question.. sorry for the mass spam. I tried following what you have mentioned and do the same for my other widgets - checkbox and radiobuttons.. eg.

Re: [Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread Justin Israel
Firstly, make sure you are setting an organization and an application name, so that you don't collide with another Qt application: http://doc.qt.io/archives/qt-4.8/qsettings.html#QSettings The reason you aren't seeing your saved text being loaded to your UI is because you forgot to actually

Re: [Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread kiteh
Hi Justin, glad to know that using QSettings is the way to go... As I am not getting the expected output, I must have done something wrong.. I was able to save the data, but when it comes to the loading part, no values are loaded despite it being present in the file contents if I am running the

Re: [Maya-Python] Re: How to embed modelPanel to a pyqt ui (again) ?

2018-08-23 Thread Justin Israel
I don't really have an answer for you on this one. I tried to shuffle things around in your latest code example, and tried even creating an intermediate widget+layout between the splitter and the paneLayout, but the behaviour did not change. Don't forget, this is all a hack on the Maya UI so its

Re: [Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread Justin Israel
On Fri, Aug 24, 2018 at 9:06 AM kiteh wrote: > I have created my tool using PyQt. Things are working correctly and I am > encountering 2 issues. > > 1. This is more of an implementation - I am trying to capture the input > state of the widgets that User has made within the tool. Eg. User has >

[Maya-Python] Capture inputs from PyQt dialog

2018-08-23 Thread kiteh
I have created my tool using PyQt. Things are working correctly and I am encountering 2 issues. 1. This is more of an implementation - I am trying to capture the input state of the widgets that User has made within the tool. Eg. User has written something in one of the many QLineEdits, checked

Re: [Maya-Python] Re: How to embed modelPanel to a pyqt ui (again) ?

2018-08-23 Thread Timothy Kim
Running the code below adds the splitter. Do you know if there's a work around for this? Thanks from PySide2 import QtCore, QtWidgets import shiboken2 import maya.cmds as cmds import maya.OpenMayaUI as mui #class MyDialog(QtWidgets.QDialog): class MyDialog(QtWidgets.QMainWindow): def

Re: [Maya-Python] Re: How to embed modelPanel to a pyqt ui (again) ?

2018-08-23 Thread Timothy Kim
Hey Justin, It seems like putting the paneLayout into a QSplitter causes the issue. I edited your code to add the splitter. From: python_inside_maya@googlegroups.com on behalf of Timothy Kim Sent: Monday, August 20, 2018 9:44:08 AM To:

Re: [Maya-Python] Unload/reload plugin not refreshing correctly

2018-08-23 Thread fruityfrank
Le mercredi 22 août 2018 18:30:22 UTC-4, Michał Frątczak a écrit : > I didn't find solution, sadly > > > czw., 23 sie 2018, 00:27 użytkownik napisał: > So no working solution, really (based on your thread) ? How did you figure > this out ? > > > > > > > > Le mercredi 22 août 2018

[Maya-Python] [Maya2018] Different beaviour bewtnee script and MayaConsol

2018-08-23 Thread Rémi Deletrain
I everyone, I use *referenceQuery* maya command in script and I have this error: # Traceback (most recent call last): # Blablabla # ... # Blablabla # ... # File "blablabla\blabla.py", line 870, in lock_nodes # if (cmds.referenceQuery(s_transform, isNodeReferenced=True) or #