ignoring publish_on_farm representations

it was creating thumbnails in Ftrack even the version had to be created in future
This commit is contained in:
Jakub Jezek 2023-11-21 21:55:48 +01:00
parent 178f044869
commit b8838d70cf
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -234,9 +234,16 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
def _get_filtered_repres(self, instance):
filtered_repres = []
src_repres = instance.data.get("representations") or []
for repre in src_repres:
self.log.debug(repre)
tags = repre.get("tags") or []
if "publish_on_farm" in tags:
# only process representations with are going
# to be published locally
continue
valid = "review" in tags or "thumb-nuke" in tags
if not valid:
continue