ayon-core/openpype/plugins/publish/collect_comment.py
2021-04-01 18:54:46 +02:00

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