ayon-core/pype/plugins/nukestudio/publish/collect_selection.py
2019-04-24 11:31:29 +02:00

15 lines
394 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 = getattr(hiero, "selection")
self.log.debug("selection: {}".format(selection))
context.data["selection"] = hiero.selection