update families

This commit is contained in:
Milan Kolar 2020-08-12 22:35:48 +02:00
parent b850c0af51
commit b76d832d95
6 changed files with 11 additions and 11 deletions

View file

@ -48,7 +48,7 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
self.log.debug(f"_ in_data: {pformat(in_data)}")
# exception for editorial
if in_data["family"] in ["editorial", "psd_batch"]:
if in_data["family"] in ["editorial", "background_batch"]:
in_data_list = self.multiple_instances(context, in_data)
else:
in_data_list = [in_data]
@ -159,6 +159,6 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
if "psd" in component["name"]:
instance.data["source"] = component["files"]
self.log.debug("Adding image:psd_batch family")
self.log.debug("Adding image:background_batch family")
instance.data["representations"].append(component)

View file

@ -14,7 +14,7 @@ class CollectMatchingAssetToInstance(pyblish.api.InstancePlugin):
label = "Collect Matching Asset to Instance"
order = pyblish.api.CollectorOrder - 0.05
hosts = ["standalonepublisher"]
family = ["psd_batch"]
family = ["background_batch"]
def process(self, instance):
source_file = os.path.basename(instance.data["source"]).lower()

View file

@ -11,17 +11,17 @@ class CollectPsdInstances(pyblish.api.InstancePlugin):
label = "Collect Psd Instances"
order = pyblish.api.CollectorOrder + 0.492
hosts = ["standalonepublisher"]
families = ["psd_batch"]
families = ["background_batch"]
# presets
subsets = {
"imageForLayout": {
"backgroundLayout": {
"task": "background",
"family": "imageForLayout"
"family": "backgroundLayout"
},
"imageForComp": {
"backgroundComp": {
"task": "background",
"family": "imageForComp"
"family": "backgroundComp"
},
"workfileBackground": {
"task": "background",

View file

@ -9,7 +9,7 @@ PSDImage = None
class ExtractBGForComp(pype.api.Extractor):
label = "Extract Background for Compositing"
families = ["imageForComp"]
families = ["backgroundComp"]
hosts = ["standalonepublisher"]
new_instance_family = "background"

View file

@ -11,7 +11,7 @@ PSDImage = None
class ExtractBGMainGroups(pype.api.Extractor):
label = "Extract Background Main Groups"
order = pyblish.api.ExtractorOrder + 0.02
families = ["imageForLayout"]
families = ["backgroundLayout"]
hosts = ["standalonepublisher"]
new_instance_family = "background"

View file

@ -14,7 +14,7 @@ class ExtractImagesFromPSD(pype.api.Extractor):
active = False
label = "Extract Images from PSD"
order = pyblish.api.ExtractorOrder + 0.02
families = ["imageForLayout"]
families = ["backgroundLayout"]
hosts = ["standalonepublisher"]
new_instance_family = "image"