mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
14 lines
306 B
Python
14 lines
306 B
Python
import nuke
|
|
|
|
import pyblish.api
|
|
|
|
|
|
class CollectSelection(pyblish.api.ContextPlugin):
|
|
"""Collect selection."""
|
|
|
|
order = pyblish.api.CollectorOrder
|
|
label = "Collect Selection of Nodes"
|
|
hosts = ["nuke"]
|
|
|
|
def process(self, context):
|
|
context.data["selection"] = nuke.selectedNodes()
|