Notes 1.1.2 for Maya (maya script)

Add notes to your scene

Back to Bugs List Previous Next

Bugs

Unable to use the script due to errors

Statuspending
Prioritymedium
Date09/13/2020
Submitted by AnDE42 AnDE42

import notes
notes.start()
# Error: TypeError: file C:/Users/USER1/Documents/maya/2020/scripts\notes.py line 199: 'PySide2.QtWidgets.QGridLayout.addWidget' called with wrong argument types:
PySide2.QtWidgets.QGridLayout.addWidget(QPushButton, int, int, int)
Supported signatures:
PySide2.QtWidgets.QGridLayout.addWidget(PySide2.QtWidgets.QWidget, int, int, PySide2.QtCore.Qt.Alignment=Default(Qt.Alignment))
PySide2.QtWidgets.QGridLayout.addWidget(PySide2.QtWidgets.QWidget, int, int, int, int, PySide2.QtCore.Qt.Alignment=Default(Qt.Alignment))
PySide2.QtWidgets.QGridLayout.addWidget(PySide2.QtWidgets.QWidget) #
select -r -ne defaultLightSet ;
select -r Notes ;

Comments on this bug:

  • AnDE42

    AnDE42 said about 6 years ago:

    I forgot to mention this. Maya Version: 2020
    Report
  • Tim Sormin

    Tim Sormin said about 3 years ago:

    I had the same problem just now, also on Maya 2020.

    I just editted the section that creates the two buttons at the bottom of the UI (because it can't download the icon any more and the grid formatting was causing errors due to not enough arguments) and it works now, just with text for the settings button instead of the gear wheel.

            settingsBtn = QtWidgets.QPushButton()
            settingsBtn.setText("Settings")
            settingsBtn.clicked.connect(settingsUI)
            self.layout.addWidget(settingsBtn, 1,0,1,1)
           
            updateBtn = QtWidgets.QPushButton()
            updateBtn.setText("Update")
            updateBtn.clicked.connect(self.updateNotes)
            self.layout.addWidget(updateBtn, 1,1,1,1)
    Report

Post a comment:

Sign in