mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
19 lines
412 B
Python
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
|