-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
Summary
When I try to create or load a system simplex on Maya 2026 I am getting the following error:
# File "...Documents\maya\modules\simplex\scripts\simplexui\falloffDialog.py", line 367, in loadSimplex
# self._falloffMapper.addMapping(self.uiFalloffTypeCBOX, 1, currentIndex)
# TypeError: # 'PySide6.QtWidgets.QDataWidgetMapper.addMapping' called with wrong argument types:
# PySide6.QtWidgets.QDataWidgetMapper.addMapping(QComboBox, int, str)
# Supported signatures:
# PySide6.QtWidgets.QDataWidgetMapper.addMapping(PySide6.QtWidgets.QWidget, int)
PySide6.QtWidgets.QDataWidgetMapper.addMapping(PySide6.QtWidgets.QWidget, int, Union[PySide6.QtCore.QByteArray, bytes])
Expected Behavior
in falloffDialog.py the string currentIndex should be converted to a QByteArray when QtLib.IsPySide6 == True
Steps to Reproduce Behavior
Open Maya 2026
Create Sphere
Launch Simplex
Set the Sphere as Current Object
Create New System
Solution
I modified line 364 on falloffDialog.py
from: if QtLib.IsPySide2 or QtLib.IsPyQt5:
to: if QtLib.IsPySide2 or QtLib.IsPyQt5 or QtLib.IsPySide6:
and that fixed the problem.
Environment
- Version 3.0
- Maya version: 2026.2
- PySide version: 6
- Python version: 3.11.9
Additional Context
I haven't done any further testing so far to see if anything else is broken.