# How to add multiple plugins and not items on Publish

**URL:** <https://community.shotgridsoftware.com/t/how-to-add-multiple-plugins-and-not-items-on-publish/18340>\
**Category:** Flow Production Tracking\
**Tags:** fptr-tk\
**Created:** [January 19, 2024, 5:26pm UTC](https://community.shotgridsoftware.com/t/how-to-add-multiple-plugins-and-not-items-on-publish/18340 "2024-01-19T17:26:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Ricardo](https://community.shotgridsoftware.com/u/Ricardo)\
**Post date:** [January 19, 2024, 5:26pm UTC](https://community.shotgridsoftware.com/t/how-to-add-multiple-plugins-and-not-items-on-publish/18340/1 "2024-01-19T17:26:45Z")

</div>

Hi All,

So, I’ve been trying to create a single item to export my assets with different options, but I only get items and not plugins/options. For example:

[MY ASSET]  
- Export Asset  
[MY ASSET]  
- Export Textures  
[MY ASSET]  
- …

I know to create items, but I don’t know how can I convert the item created to the plugin. I tried to put the second item created parented on the item but a sub-item was created. I would like to create different plugins linked to the item/asset.

I know how to create different items, but I am unsure how to convert them to plugins. When I try to parent it to the item, a sub-item is created instead. I aim to create various plugins that are linked to the item or asset.

The idea is:

[Item]  
- Export Asset  
- Export Textures  
- Export to Unreal

I’m unsure about the best way to create an item with different plugins parented.  
Anyone could help me. I am sharing a part of my code.

Note: Ignore the name of my vars. It is only a separate code to exemplify my issue. Sorry

I really appreciate any help you can provide.  
Thanks in advance  
Ricardo

 ![collector](https://global.discourse-cdn.com/shotgunsoftware/original/2X/8/80f00e762765642502a02c3824e274335a083a5f.png)  
 ![publish](https://global.discourse-cdn.com/shotgunsoftware/original/2X/0/09edb2ca366b586496cfacfa2785d386b7a7177b.png)  
 ![tk-multi-publish2_yml](https://global.discourse-cdn.com/shotgunsoftware/original/2X/8/8febcdedd858c78dc8c37f129d5f4ee6cae21bfe.png)

---

<div class="post-metadata">

**Author:** ![grover\_gol](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/grover_gol/32/2436_2.png) [@grover\_gol](https://community.shotgridsoftware.com/u/grover_gol)\
**Post date:** [January 21, 2024, 9:46pm UTC](https://community.shotgridsoftware.com/t/how-to-add-multiple-plugins-and-not-items-on-publish/18340/2 "2024-01-21T21:46:06Z")

</div>

Hi Ricardo.

In order to have several plugins in one item you need to have the same filter string for several of them.  
For example, now you have two filters: ItemSessionLoader and ItemSessionExport. And creating two items: AssetGEORIGGroup\_item\_loader and AssetGEORIGGroup\_item\_export.  
Just try to use one filter and one item instead.

```auto
AssetGEORIGGroup_item = parent_item.create_item(
    "maya.session.exports",
    "various exports for asset",
    "Exports"
)

```

Then in your plugins use also the same filter.

```auto
class MyExportTextures(HookBaseClass):
    @property
    def item_filters(self):
        """
        List of item types that this plugin is interested in.
        """
        return ["maya.session.exports"]

class MyExportMesh(HookBaseClass):
    @property
    def item_filters(self):
        """
        List of item types that this plugin is interested in.
        """
        return ["maya.session.exports"]

```

That way you should get this as a result:

 ![plugins](https://global.discourse-cdn.com/shotgunsoftware/original/2X/1/17c672254f98ef0cae3680e1006c983ce7c3f920.png)

---

<div class="post-metadata">

**Author:** ![Ricardo](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Ricardo](https://community.shotgridsoftware.com/u/Ricardo)\
**Post date:** [January 23, 2024, 1:48am UTC](https://community.shotgridsoftware.com/t/how-to-add-multiple-plugins-and-not-items-on-publish/18340/3 "2024-01-23T01:48:57Z")

</div>

The solution was perfect.  
Thanks a million, @grover_gol
