diff --git a/openpype/tools/pyblish_pype/settings.py b/openpype/tools/pyblish_pype/settings.py index 11539f67a6..aaa35d0b56 100644 --- a/openpype/tools/pyblish_pype/settings.py +++ b/openpype/tools/pyblish_pype/settings.py @@ -25,3 +25,6 @@ TerminalFilters = { # Allow animations in GUI Animated = env_variable_to_bool("OPENPYPE_PYBLISH_ANIMATED", True) + +# Print UI info message to console +PrintInfo = env_variable_to_bool("OPENPYPE_PYBLISH_PRINT_INFO", True) diff --git a/openpype/tools/pyblish_pype/window.py b/openpype/tools/pyblish_pype/window.py index 3f9cd17deb..7bb11745d6 100644 --- a/openpype/tools/pyblish_pype/window.py +++ b/openpype/tools/pyblish_pype/window.py @@ -1305,9 +1305,9 @@ class Window(QtWidgets.QDialog): self.animation_info_msg.stop() self.animation_info_msg.start() - # TODO(marcus): Should this be configurable? Do we want - # the shell to fill up with these messages? - util.u_print(message) + if settings.PrintInfo: + # Print message to console + util.u_print(message) def warning(self, message): """Block processing and print warning until user hits "Continue"