Merge pull request #1464 from pypeclub/bugfix/typos_and_docstrings

This commit is contained in:
Milan Kolar 2021-05-04 16:50:54 +02:00 committed by GitHub
commit 397f204b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 38 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

@ -1,21 +0,0 @@
"""
Optional:
instance.data["remove"] -> mareker for removing
"""
import pyblish.api
class CollectClearInstances(pyblish.api.InstancePlugin):
"""Clear all marked instances"""
order = pyblish.api.CollectorOrder + 0.4999
label = "Clear Instances"
hosts = ["standalonepublisher"]
def process(self, instance):
self.log.debug(
f"Instance: `{instance}` | "
f"families: `{instance.data['families']}`")
if instance.data.get("remove"):
self.log.info(f"Removing: {instance}")
instance.context.remove(instance)

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: