The filterSourceType
(MEL/Python) flag of the cmdScrollFieldReporte
command has the opposite effect in Maya 2022 compared to Maya 2019-2020.
Is it like that for everyone?
And how did the filterSourceType
flag work in Maya 2018 and older?
Variant in Maya 2022 seems to be more intuitive.
comand: cmdScrollFieldReporter
flag: filterSourceType
(fst) - string
Filters the specified source type from showing in this command reporter. Currently supports either “mel”, “python”, or “” (default). Setting the filter to the empty string ("") will remove all filtering and show both “mel” and “python” results.
Maya 2019.3.1 or Maya 2020.4:
Script Editor → Hystory → Hystory Output → switch manually: “Show Python Only”
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# 'mel' #
In fact, only Python commands are displayed in the Script Editor
Script Editor → Hystory → Hystory Output → switch manually: “Show MEL Only”
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# 'python' #
In fact, only MEL commands are displayed in the Script Editor
switch with Python command:
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', edit = 1, filterSourceType = "python")
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# Result: 'python' #
In fact, only MEL commands are displayed in the Script Editor
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', edit = 1, filterSourceType = "mel")
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# Result: 'mel' #
In fact, only Python commands are displayed in the Script Editor
##############################################################
Maya 2022.3:
Script Editor → Hystory → Hystory Output → switch manually: “Show Python Only”
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# 'python' #
In fact, only Python commands are displayed in the Script Editor
Script Editor → Hystory → Hystory Output → switch manually: “Show MEL Only”
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# 'mel' #
In fact, only MEL commands are displayed in the Script Editor
switch with Python command:
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', edit = 1, filterSourceType = "python")
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# Result: 'python' #
In fact, only Python commands are displayed in the Script Editor
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', edit = 1, filterSourceType = "mel")
cmds.cmdScrollFieldReporter('cmdScrollFieldReporter1', query = 1, filterSourceType = 1)
# Result: 'mel' #
In fact, only MEL commands are displayed in the Script Editor