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

Commit

Permalink
Merge pull request #3565 from pypeclub/bugfix/OP-3641_Integrator-plug…
Browse files Browse the repository at this point in the history
…in-exclude-families

General: Integrator exclude farm removal
  • Loading branch information
iLLiCiTiT authored Jul 26, 2022
2 parents cfc11bb + 66d283e commit 81b3034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def process(self, context):
# Farm rendering
self.log.info("flagged for farm render")
instance.data["transfer"] = False
instance.data["farm"] = True
families.append("{}.farm".format(family))
family = families_ak.lower()

Expand Down
10 changes: 1 addition & 9 deletions openpype/plugins/publish/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
"mvUsdOverride",
"simpleUnrealTexture"
]
exclude_families = ["clip", "render.farm"]

default_template_name = "publish"

# Representation context keys that should always be written to
Expand Down Expand Up @@ -190,14 +190,6 @@ def process(self, instance):
).format(instance.data["family"]))
return

# Exclude instances that also contain families from exclude families
families = set(get_instance_families(instance))
exclude = families & set(self.exclude_families)
if exclude:
self.log.debug("Instance not integrated due to exclude "
"families found: {}".format(", ".join(exclude)))
return

file_transactions = FileTransaction(log=self.log)
try:
self.register(instance, file_transactions, filtered_repres)
Expand Down

0 comments on commit 81b3034

Please sign in to comment.