ayon-core/pype/plugins/global/publish/collect_comment.py

19 lines
412 B
Python

"""
Requires:
None
Provides:
context -> comment (str)
"""
import pyblish.api
class CollectComment(pyblish.api.ContextPlugin):
"""This plug-ins displays the comment dialog box per default"""
label = "Collect Comment"
order = pyblish.api.CollectorOrder
def process(self, context):
comment = (context.data.get("comment") or "").strip()
context.data["comment"] = comment