maya plugin fixes

This commit is contained in:
Milan Kolar 2021-04-23 16:13:34 +02:00
parent 31d873483f
commit ea3adde2ed
4 changed files with 8 additions and 17 deletions

View file

@ -2,14 +2,9 @@ import pyblish.api
class CollectRemoveMarked(pyblish.api.ContextPlugin):
"""Collect model data
"""Remvoe marked data
Ensures always only a single frame is extracted (current frame).
Note:
This is a workaround so that the `pype.model` family can use the
same pointcache extractor implementation as animation and pointcaches.
This always enforces the "current" frame to be published.
Remove instances that have 'remove' in their instance.data
"""

View file

@ -2,14 +2,9 @@ import pyblish.api
class CollectFtrackFamilies(pyblish.api.InstancePlugin):
"""Collect model data
Ensures always only a single frame is extracted (current frame).
Note:
This is a workaround so that the `pype.model` family can use the
same pointcache extractor implementation as animation and pointcaches.
This always enforces the "current" frame to be published.
"""Collect family for ftrack publishing
Add ftrack family to those instance that should be published to ftrack
"""
@ -23,6 +18,7 @@ class CollectFtrackFamilies(pyblish.api.InstancePlugin):
"rig",
"camera"
]
hosts = ["maya"]
def process(self, instance):

View file

@ -14,4 +14,4 @@ class CollectCurrentUserPype(pyblish.api.ContextPlugin):
def process(self, context):
user = get_openpype_username()
context.data["user"] = user
self.log.debug("Colected user \"{}\"".format(user))
self.log.debug("Collected user \"{}\"".format(user))

View file

@ -19,7 +19,7 @@ class CollectSceneVersion(pyblish.api.ContextPlugin):
if "unreal" in pyblish.api.registered_hosts():
return
assert context.data.get('currentFile'), "Cannot get curren file"
assert context.data.get('currentFile'), "Cannot get current file"
filename = os.path.basename(context.data.get('currentFile'))
if '<shell>' in filename: