Hello!
Patrick and I have been discussing this one offline, but I wanted to come back here with an update in case others are seeing it.
First some background: @jfboismenu did a webinar in Nov of 2018, demoing the Publish API, which allows you to perform “headless” publishes – executing publish code independent of the GUI (for example, for running publishes on the farm). He provided the code for his demo in the tk-config-publish_api_webinar repo here., and Patrick’s workflow above is based on that demo.
The Toolkit Engine class has a has_ui() method, and the tk-houdini
engine does implement it properly.
Patrick was seeing the following error:
2020-02-24 05:32:15: 0: STDOUT: File "S:\path\to\pipeline\configuration\tk-config-default2\hooks\tk-multi-publish2\basic\farm_wrapper.py", line 20, in <module>
2020-02-24 05:32:15: 0: STDOUT: class FarmWrapperWidget(QtGui.QWidget):
Because this is in the hook code on the studio’s end, he was able to fix that by wrapping the class declaration in farm_wrapper.py in the following if statement:
if sgtk.platform.current_engine().has_ui
But there’s also the error in the original post above, and that is very much coming from our code. That one looks like a bug. The code looks like this:
So, it looks like the not
in the if statement is in error. We’re tracking that as a bug, and if the issue is as simple as it looks, hopefully we’ll have a fix out soon!