from pyblish import api


class CollectClipTags(api.InstancePlugin):
    """Collect Tags from selected track items."""

    order = api.CollectorOrder + 0.011
    label = "Collect Tags"
    hosts = ["nukestudio"]
    families = ['clip']

    def process(self, instance):
        tags = instance.data["item"].tags()

        tags_d = []
        if tags:
            for t in tags:
                tag_data = {
                    "name": t.name(),
                    "object": t,
                    "metadata": t.metadata(),
                    "inTime": t.inTime(),
                    "outTime": t.outTime(),
                }
                tags_d.append(tag_data)

        instance.data["tags"] = tags_d

        self.log.info(instance.data["tags"])
        return

43805b8aa2996a8ad8cc33b132a0c3e28d4a2018
<mask token>


class CollectClipTags(api.InstancePlugin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def process(self, instance):
        tags = instance.data['item'].tags()
        tags_d = []
        if tags:
            for t in tags:
                tag_data = {'name': t.name(), 'object': t, 'metadata': t.
                    metadata(), 'inTime': t.inTime(), 'outTime': t.outTime()}
                tags_d.append(tag_data)
        instance.data['tags'] = tags_d
        self.log.info(instance.data['tags'])
        return

<mask token>


class CollectClipTags(api.InstancePlugin):
    <mask token>
    order = api.CollectorOrder + 0.011
    label = 'Collect Tags'
    hosts = ['nukestudio']
    families = ['clip']

    def process(self, instance):
        tags = instance.data['item'].tags()
        tags_d = []
        if tags:
            for t in tags:
                tag_data = {'name': t.name(), 'object': t, 'metadata': t.
                    metadata(), 'inTime': t.inTime(), 'outTime': t.outTime()}
                tags_d.append(tag_data)
        instance.data['tags'] = tags_d
        self.log.info(instance.data['tags'])
        return

<mask token>


class CollectClipTags(api.InstancePlugin):
    """Collect Tags from selected track items."""
    order = api.CollectorOrder + 0.011
    label = 'Collect Tags'
    hosts = ['nukestudio']
    families = ['clip']

    def process(self, instance):
        tags = instance.data['item'].tags()
        tags_d = []
        if tags:
            for t in tags:
                tag_data = {'name': t.name(), 'object': t, 'metadata': t.
                    metadata(), 'inTime': t.inTime(), 'outTime': t.outTime()}
                tags_d.append(tag_data)
        instance.data['tags'] = tags_d
        self.log.info(instance.data['tags'])
        return

from pyblish import api


class CollectClipTags(api.InstancePlugin):
    """Collect Tags from selected track items."""
    order = api.CollectorOrder + 0.011
    label = 'Collect Tags'
    hosts = ['nukestudio']
    families = ['clip']

    def process(self, instance):
        tags = instance.data['item'].tags()
        tags_d = []
        if tags:
            for t in tags:
                tag_data = {'name': t.name(), 'object': t, 'metadata': t.
                    metadata(), 'inTime': t.inTime(), 'outTime': t.outTime()}
                tags_d.append(tag_data)
        instance.data['tags'] = tags_d
        self.log.info(instance.data['tags'])
        return

from pyblish import api


class CollectClipTags(api.InstancePlugin):
    """Collect Tags from selected track items."""

    order = api.CollectorOrder + 0.011
    label = "Collect Tags"
    hosts = ["nukestudio"]
    families = ['clip']

    def process(self, instance):
        tags = instance.data["item"].tags()

        tags_d = []
        if tags:
            for t in tags:
                tag_data = {
                    "name": t.name(),
                    "object": t,
                    "metadata": t.metadata(),
                    "inTime": t.inTime(),
                    "outTime": t.outTime(),
                }
                tags_d.append(tag_data)

        instance.data["tags"] = tags_d

        self.log.info(instance.data["tags"])
        return
