Python

PySide6 Support

The version of PySide used by Flame Family applications has been upgraded to PySide6 and any script using PySide2 will no longer work as expected.

Supporting Multiple Versions in a Single Script

If you plan to use your scripts with multiple version of Flame Family products, make sure to modify your scripts to either test for the current version of PySide or use the flame.get_version() function.

Here is an example of an existing script converted to be used in older versions of the application as well as in the 2025 version:

PySide2

from PySide2 import QtWidgets, QtCore, QtGui
resolution = QtWidgets.QDesktopWidget().screenGeometry()
some_action = QtWidgets.QAction("some action")
vbox = QtWidgets.QVBoxLayout()
vbox.setMargin(10)

PySide6

try:
    from PySide6 import QtWidgets, QtCore, QtGui
except ImportError:
    from PySide2 import QtWidgets, QtCore, QtGui
 
if QtGui.__version_info__[0] < 6:
    mainWindow = QtWidgets.QDesktopWidget()
    QAction = QtWidgets.QAction
else:
    mainWindow = QtGui.QGuiApplication.primaryScreen()
    QAction = QtGui.QAction
 
resolution = mainWindow.screenGeometry()
some_action = QAction("some action")
vbox = QtWidgets.QVBoxLayout()
vbox.setContentsMargins(10, 10, 10, 10)

For more information, please visit the Qt PySide documentation.

Python API Updates

Clamp

The Python API has been adjusted so the four new controls are available as attributes, replacing the existing out_range attribute.

Keyboard Shortcuts

The flame.users.current_user.shortcuts_profile attribute can be used to change the profile in the Python API. One of the following must be passed as an argument:

STMap

The new STMap node can be controlled using the Python API. 13 attributes are available: