From b912a0d7ca31c7d7a3a2e3a21bb84d3948d8fe36 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 29 Nov 2018 15:53:20 +0100 Subject: [PATCH] changing ftrack publishing from all families to only model and look for now. --- pype/plugins/maya/publish/collect_instances.py | 4 ---- pype/plugins/maya/publish/collect_look.py | 4 ++++ pype/plugins/maya/publish/collect_model.py | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pype/plugins/maya/publish/collect_instances.py b/pype/plugins/maya/publish/collect_instances.py index 4b13131166..807b57c710 100644 --- a/pype/plugins/maya/publish/collect_instances.py +++ b/pype/plugins/maya/publish/collect_instances.py @@ -109,9 +109,6 @@ class CollectInstances(pyblish.api.ContextPlugin): # Store the exact members of the object set instance.data["setMembers"] = members - # make ftrack publishable - instance.data["families"] = ['ftrack'] - # Define nice label name = cmds.ls(objset, long=False)[0] # use short name label = "{0} ({1})".format(name, @@ -126,7 +123,6 @@ class CollectInstances(pyblish.api.ContextPlugin): instance.data.update(data) - # Produce diagnostic message for any graphical # user interface interested in visualising it. self.log.info("Found: \"%s\" " % instance.data["name"]) diff --git a/pype/plugins/maya/publish/collect_look.py b/pype/plugins/maya/publish/collect_look.py index cbfecdc0ad..0daf3cc19c 100644 --- a/pype/plugins/maya/publish/collect_look.py +++ b/pype/plugins/maya/publish/collect_look.py @@ -107,6 +107,7 @@ def seq_to_glob(path): "": "" } + lower = path.lower() has_pattern = False for pattern, regex_pattern in patterns.items(): @@ -213,6 +214,9 @@ class CollectLook(pyblish.api.InstancePlugin): with lib.renderlayer(instance.data["renderlayer"]): self.collect(instance) + # make ftrack publishable + instance.data["families"] = ['ftrack'] + def collect(self, instance): self.log.info("Looking for look associations " diff --git a/pype/plugins/maya/publish/collect_model.py b/pype/plugins/maya/publish/collect_model.py index 47808934b3..393bb82910 100644 --- a/pype/plugins/maya/publish/collect_model.py +++ b/pype/plugins/maya/publish/collect_model.py @@ -7,7 +7,7 @@ class CollectModelData(pyblish.api.InstancePlugin): """Collect model data Ensures always only a single frame is extracted (current frame). - + Note: This is a workaround so that the `studio.model` family can use the same pointcache extractor implementation as animation and pointcaches. @@ -24,3 +24,6 @@ class CollectModelData(pyblish.api.InstancePlugin): frame = cmds.currentTime(query=True) instance.data['startFrame'] = frame instance.data['endFrame'] = frame + + # make ftrack publishable + instance.data["families"] = ['ftrack']