I just updated all my Toolkit components, and now the loader in Houdini looks like this, the entries in the list used to have pretty low contrast before as well, but now it’s almost unreadable with light gray on white.
It’s only happening in Houdini, so I’m assuming it picks up the color from Houdini somewhere, so is it something I can easily tweak? Or is it a more fundamental issue with the Houdini integration?
You need to tweak your config a little and add this hook for Houdini Workfiles
Create a hook file:
hooks/tk-multi-workfiles2/basic/ui_config.py
# Copyright (c) 2023 Autodesk, Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Autodesk, Inc.
import sgtk
from sgtk.platform.qt import QtGui
HookClass = sgtk.get_hook_baseclass()
class HoudiniUIConfig(HookClass):
"""Hook to customize customize the main file view for Houdini."""
def get_item_background_color(self, item):
"""
Returns the brush to use to draw the background for this widget
Top-level items will use the default brush (None is returned), and non-top level items
will use the QPalette base brush to paint the background.
:param item: The model item
:type item: :class:`sgkt.platofrm.qt.QtGui.QStandardItem`
:return: The QBrush.
:rtype: :class:`sgtk.platform.qt.QtGui.QBrush`
"""
parent = item.index().parent()
if not parent.isValid():
return
return QtGui.QApplication.palette().base()
Tweak the config of the workfiles2 app for houdini and add this line:
Thanks! But no success yet. Can you be more specific about the second step, because I’m not sure I did it correctly. Are we talking about env/includes/settings/tk-multi-workfiles2.yml?
Thanks, that did work for the asset and shot steps once I’ve opened or saved a scene, but it’s still wrong when you’re not in a context yet, i.e. the “Project Environment”, for example when you just open the program from FPT Desktop and go “Open” from the FPT menu.
Seems like I don’t have any Houdini-specific settings for that in my yml. Is there a way to add this hook to the Project environment lever as well? I tried this by looking at other lines in there, but doesn’t seem to work, so maybe there’s another way to get to that Project env?
The config I use have been kicking around for a while and may not be up to date, but it looks like this, seems the same to me except for the pythonconsole lines: