Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Enhancement: Enforce thumbnail for Houdini publish #6335

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions openpype/hosts/houdini/plugins/publish/extract_opengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ def process(self, instance):
if "representations" not in instance.data:
instance.data["representations"] = []
instance.data["representations"].append(representation)

# Use the first image as a thumbnail if it's not already set.
if not instance.data.get("thumbnailSource") and output:
instance.data["thumbnailSource"] = os.path.join(staging_dir, output[0])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (83 > 79 characters)

Loading