Skip to content

[Bug]: Maya 2026 PySide6 Error on currentIndex str conversion in falloffDialog.py #147

@maumemoli

Description

@maumemoli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions