ayon-core/pype/plugins/nukestudio/publish/collect_selection.py
2019-08-21 16:16:00 +02:00

17 lines
384 B
Python

import pyblish.api
import hiero
class CollectSelection(pyblish.api.ContextPlugin):
"""Inject the selection in the context."""
order = pyblish.api.CollectorOrder - 0.1
label = "Selection"
def process(self, context):
selection = list(hiero.selection)
self.log.debug("selection: {}".format(selection))
context.data["selection"] = selection